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
- 継承
- 属性
コンストラクター
| 名前 | 説明 |
|---|---|
| ImportAttribute() |
既定のコントラクト名でエクスポートをインポートして、 ImportAttribute クラスの新しいインスタンスを初期化します。 |
| ImportAttribute(String) |
ImportAttribute クラスの新しいインスタンスを初期化し、指定したコントラクト名でエクスポートをインポートします。 |
プロパティ
| 名前 | 説明 |
|---|---|
| AllowDefault |
コントラクト名を持つエクスポートがコンテナーに存在しない場合に、プロパティまたはパラメーターがその型の既定値に設定されるかどうかを示す値を取得または設定します。 |
| ContractName |
インポートするエクスポートのコントラクト名を取得します。 |
メソッド
| 名前 | 説明 |
|---|---|
| Equals(Object) |
このインスタンスが指定したオブジェクトと等しいかどうかを示す値を返します。 (継承元 Attribute) |
| GetHashCode() |
このインスタンスのハッシュ コードを返します。 (継承元 Attribute) |
| GetType() |
現在のインスタンスの Type を取得します。 (継承元 Object) |
| MemberwiseClone() |
現在の Objectの簡易コピーを作成します。 (継承元 Object) |
| ToString() |
現在のオブジェクトを表す文字列を返します。 (継承元 Object) |