DependencyObjectType.FromSystemType(Type) DependencyObjectType.FromSystemType(Type) DependencyObjectType.FromSystemType(Type) DependencyObjectType.FromSystemType(Type) Method

定義

指定されたシステム (CLRCLR) 型を表す DependencyObjectType を返します。Returns a DependencyObjectType that represents a given system (CLRCLR) type.

public:
 static System::Windows::DependencyObjectType ^ FromSystemType(Type ^ systemType);
public static System.Windows.DependencyObjectType FromSystemType (Type systemType);
static member FromSystemType : Type -> System.Windows.DependencyObjectType
Public Shared Function FromSystemType (systemType As Type) As DependencyObjectType

パラメーター

systemType
Type Type Type Type

変換するシステム (CLRCLR) 型。The system (CLRCLR) type to convert.

戻り値

システム (CLRCLR) 型を表す DependencyObjectTypeA DependencyObjectType that represents the system (CLRCLR) type.

次の例でFromSystemTypeは、をDependencyObjectType呼び出し、 Windowクラスの型に基づいてを作成します。The following example calls FromSystemType , creating a DependencyObjectType based on the type of the Window class.

DependencyObjectType dt =
    DependencyObjectType.FromSystemType(typeof(Window));
Dim dt As DependencyObjectType = DependencyObjectType.FromSystemType(GetType(Window))

注釈

DependencyObjectはをDependencyObjectType DependencyObject返すプロパティを保持しますが、これには特定のインスタンスが必要です。 DependencyObjectTypeEach DependencyObject maintains a DependencyObjectType property that returns a DependencyObjectType, but this requires having a particular DependencyObject instance. まだDependencyObjectインスタンスを持っておらず、が必要な場合は、 DependencyObjectTypeこの静的ユーティリティメソッドを使用できます。You can use this static utility method if you do not yet have a DependencyObject instance and require a DependencyObjectType.

適用対象