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

Definición

Devuelve un DependencyObjectType que representa un tipo (CLRCLR) de un sistema determinado.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

Parámetros

systemType
Type Type Type Type

Tipo (CLRCLR) del sistema que se va a convertir.The system (CLRCLR) type to convert.

Devoluciones

DependencyObjectType que representa el tipo (CLRCLR) del sistema.A DependencyObjectType that represents the system (CLRCLR) type.

Ejemplos

En el ejemplo siguiente FromSystemType se llama a DependencyObjectType , que crea un basado en Window el tipo de la clase.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))

Comentarios

Cada DependencyObject mantiene una DependencyObjectType propiedad que devuelve un DependencyObjectType, pero esto requiere tener una instancia DependencyObject determinada.Each DependencyObject maintains a DependencyObjectType property that returns a DependencyObjectType, but this requires having a particular DependencyObject instance. Puede usar este método de utilidad estática Si aún no tiene una DependencyObject instancia de y requiere un. DependencyObjectTypeYou can use this static utility method if you do not yet have a DependencyObject instance and require a DependencyObjectType.

Se aplica a