DynamicDependencyAttribute 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
指出某個成員在另一個成員上擁有的相依性。
public ref class DynamicDependencyAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Constructor | System.AttributeTargets.Field | System.AttributeTargets.Method, AllowMultiple=true, Inherited=false)]
public sealed class DynamicDependencyAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Constructor | System.AttributeTargets.Field | System.AttributeTargets.Method, AllowMultiple=true, Inherited=false)>]
type DynamicDependencyAttribute = class
inherit Attribute
Public NotInheritable Class DynamicDependencyAttribute
Inherits Attribute
- 繼承
- 屬性
備註
此屬性可用來告知工具,指出僅從元資料與 IL 中無法察覺的依賴性,例如透過反射所依賴的成員。
建構函式
| 名稱 | Description |
|---|---|
| DynamicDependencyAttribute(DynamicallyAccessedMemberTypes, String, String) |
在組合體中的某個型態上初始化該類別的新實例 DynamicDependencyAttribute ,並以指定類型的成員。 |
| DynamicDependencyAttribute(DynamicallyAccessedMemberTypes, Type) |
初始化一個新的類別實例 DynamicDependencyAttribute ,並以指定類型的成員在 上 Type初始化。 |
| DynamicDependencyAttribute(String, String, String) |
初始化類別的新實例 DynamicDependencyAttribute ,並以組件中某型別的成員指定簽章初始化。 |
| DynamicDependencyAttribute(String, Type) |
初始化該類別的新實例DynamicDependencyAttribute,並以指定成員的簽名。Type |
| DynamicDependencyAttribute(String) |
初始化一個類別的新實例 DynamicDependencyAttribute ,其簽章為與消費者相同型別的成員。 |
屬性
| 名稱 | Description |
|---|---|
| AssemblyName |
取得指定類型的組裝名稱。 |
| Condition |
已淘汰.
取得或設定依賴適用的條件。 |
| MemberSignature |
取得所依賴成員的簽名。 |
| MemberTypes |
取得依賴於欄位和屬性的成員類型。 |
| Type |
得到包含指定成員的 。Type |
| TypeId |
在衍生類別中實作時,取得這個 Attribute的唯一標識碼。 (繼承來源 Attribute) |
| TypeName |
取得包含指定成員的類型全名。 |
方法
| 名稱 | Description |
|---|---|
| Equals(Object) |
傳回值,這個值表示這個實例是否等於指定的物件。 (繼承來源 Attribute) |
| GetHashCode() |
傳回這個實例的哈希碼。 (繼承來源 Attribute) |
| GetType() |
取得目前實例的 Type。 (繼承來源 Object) |
| IsDefaultAttribute() |
在衍生類別中覆寫時,指出這個實例的值是否為衍生類別的預設值。 (繼承來源 Attribute) |
| Match(Object) |
在衍生類別中覆寫時,傳回值,指出這個實例是否等於指定的物件。 (繼承來源 Attribute) |
| MemberwiseClone() |
建立目前 Object的淺層複本。 (繼承來源 Object) |
| ToString() |
傳回表示目前 物件的字串。 (繼承來源 Object) |