DependencyAttribute Constructor (String^, LoadHint)
.NET Framework (current version)
Initializes a new instance of the DependencyAttribute class with the specified LoadHint value.
Assembly: mscorlib (in mscorlib.dll)
public:
DependencyAttribute(
String^ dependentAssemblyArgument,
LoadHint loadHintArgument
)
Parameters
- dependentAssemblyArgument
-
Type:
System::String^
The dependent assembly to bind to.
- loadHintArgument
-
Type:
System.Runtime.CompilerServices::LoadHint
One of the LoadHint values.
The DependencyAttribute attribute gives the common language runtime hints on how tightly to bind to the dependency. The runtime uses these hints to help settle tradeoffs between lazy dependency load and efficient binding to the dependency. For example, hard binding allows the runtime to encode pointers to dependent native images, which results in a reduced working set. This attribute guides the runtime in making these decisions.
.NET Framework
Available since 2.0
Available since 2.0
Show: