ImportAttribute 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
指定主機容器應該提供屬性或參數值。
public ref class ImportAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Parameter | System.AttributeTargets.Property, AllowMultiple=false, Inherited=false)]
public class ImportAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Parameter | System.AttributeTargets.Property, AllowMultiple=false, Inherited=false)>]
type ImportAttribute = class
inherit Attribute
Public Class ImportAttribute
Inherits Attribute
- 繼承
- 屬性
建構函式
| 名稱 | Description |
|---|---|
| ImportAttribute() |
初始化該類別的新實例 ImportAttribute ,並以預設合約名稱匯入匯出檔。 |
| ImportAttribute(String) |
初始化該類別的新實例 ImportAttribute ,並匯入指定的合約名稱匯入匯出。 |
屬性
| 名稱 | Description |
|---|---|
| AllowDefault |
取得或設定一個值,指示當容器中沒有包含合約名稱的匯出時,屬性或參數是否會被設為其預設值。 |
| ContractName |
取得出口商品的合約名稱。 |
方法
| 名稱 | Description |
|---|---|
| Equals(Object) |
傳回值,這個值表示這個實例是否等於指定的物件。 (繼承來源 Attribute) |
| GetHashCode() |
傳回這個實例的哈希碼。 (繼承來源 Attribute) |
| GetType() |
取得目前實例的 Type。 (繼承來源 Object) |
| MemberwiseClone() |
建立目前 Object的淺層複本。 (繼承來源 Object) |
| ToString() |
傳回表示目前 物件的字串。 (繼承來源 Object) |