AdornerResources.CreateResourceKey メソッド

指定した型とメンバー名に対するリソース キーを作成します。

名前空間:  Microsoft.Windows.Design.Interaction
アセンブリ:  Microsoft.Windows.Design.Interaction (Microsoft.Windows.Design.Interaction.dll 内)

構文

'宣言
Public Shared Function CreateResourceKey ( _
    owningType As Type, _
    publicMember As String _
) As ResourceKey
public static ResourceKey CreateResourceKey(
    Type owningType,
    string publicMember
)
public:
static ResourceKey^ CreateResourceKey(
    Type^ owningType, 
    String^ publicMember
)
static member CreateResourceKey : 
        owningType:Type * 
        publicMember:string -> ResourceKey 
public static function CreateResourceKey(
    owningType : Type, 
    publicMember : String
) : ResourceKey

パラメーター

  • owningType
    型: System.Type
    このリソースを所有する型。
  • publicMember
    型: System.String
    このリソースを公開するパブリックな静的メンバーの名前。

戻り値

型: System.Windows.ResourceKey
新しいリソース キー。

例外

例外 条件
ArgumentNullException

owningType または publicMember が nullnull 参照 (Visual Basic では Nothing) です。

解説

リソース キーの作成が終了したら、RegisterResources メソッドを呼び出して、このキーに対してリソースを提供するリソース コールバックを登録します。

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。 このメンバーは、部分的に信頼されているコードから使用することはできません。 詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

参照

AdornerResources クラス

Microsoft.Windows.Design.Interaction 名前空間

その他の技術情報

WPF デザイナーの機能拡張

装飾アーキテクチャ

カスタム装飾の作成