[]
States a dependency that one member has on another.
[AttributeUsage(AttributeTargets.Constructor|AttributeTargets.Method|AttributeTargets.Field, AllowMultiple = true, Inherited = false)]
public sealed class DynamicDependencyAttribute : Attribute
<AttributeUsage(AttributeTargets.ConstructorOrAttributeTargets.MethodOrAttributeTargets.Field, AllowMultiple:=True, Inherited:=False)>
Public NotInheritable Class DynamicDependencyAttribute
Inherits Attribute
| Name | Description |
|---|---|
| DynamicDependencyAttribute(DynamicallyAccessedMemberTypes, string, string) | Initializes a new instance of the System.Diagnostics.CodeAnalysis.DynamicDependencyAttribute class with the specified signature of a member on the same type as the consumer. |
| DynamicDependencyAttribute(DynamicallyAccessedMemberTypes, Type) | Initializes a new instance of the System.Diagnostics.CodeAnalysis.DynamicDependencyAttribute class with the specified signature of a member on the same type as the consumer. |
| DynamicDependencyAttribute(string) | Initializes a new instance of the System.Diagnostics.CodeAnalysis.DynamicDependencyAttribute class with the specified signature of a member on the same type as the consumer. |
| DynamicDependencyAttribute(string, string, string) | Initializes a new instance of the System.Diagnostics.CodeAnalysis.DynamicDependencyAttribute class with the specified signature of a member on the same type as the consumer. |
| DynamicDependencyAttribute(string, Type) | Initializes a new instance of the System.Diagnostics.CodeAnalysis.DynamicDependencyAttribute class with the specified signature of a member on the same type as the consumer. |
| Name | Description |
|---|---|
| AssemblyName | Gets the assembly name of the specified type. |
| Condition | Gets or sets the condition in which the dependency is applicable. |
| MemberSignature | Gets the signature of the member depended on. |
| MemberTypes | Gets the types of the members that are depended on, for example, fields and properties. |
| Type | Gets the System.Type containing the specified member. |
| TypeName | Gets the full name of the type containing the specified member. |