ImportingConstructorAttribute 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
指定建立屬性元件時應該使用哪一個建構函式。
public ref class ImportingConstructorAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Constructor, AllowMultiple=false, Inherited=false)]
public sealed class ImportingConstructorAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Constructor, AllowMultiple=false, Inherited=false)>]
type ImportingConstructorAttribute = class
inherit Attribute
Public NotInheritable Class ImportingConstructorAttribute
Inherits Attribute
- 繼承
- 屬性
備註
預設情況下,僅使用預設無參數建構子(如有)來構造帶有屬性的部分。 使用此屬性表示應使用特定的建構子。
建構函式
| 名稱 | Description |
|---|---|
| ImportingConstructorAttribute() |
初始化 ImportingConstructorAttribute 類別的新執行個體。 |
方法
| 名稱 | Description |
|---|---|
| Equals(Object) |
傳回值,這個值表示這個實例是否等於指定的物件。 (繼承來源 Attribute) |
| GetHashCode() |
傳回這個實例的哈希碼。 (繼承來源 Attribute) |
| GetType() |
取得目前實例的 Type。 (繼承來源 Object) |
| MemberwiseClone() |
建立目前 Object的淺層複本。 (繼承來源 Object) |
| ToString() |
傳回表示目前 物件的字串。 (繼承來源 Object) |