次の方法で共有


ElementPropertyDescriptor.ComponentType Property

Gets the type of the model element to which this property is bound.

Namespace:  Microsoft.VisualStudio.Modeling.Design
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)

Syntax

'宣言
Public Overrides ReadOnly Property ComponentType As Type
    Get
public override Type ComponentType { get; }
public:
virtual property Type^ ComponentType {
    Type^ get () override;
}
abstract ComponentType : Type
override ComponentType : Type
override function get ComponentType () : Type

Property Value

Type: System.Type
The type of the model element to which this property is bound.

Remarks

If the owner parameter was specified in the constructor for this property descriptor, then the GetType method of the owner provides the type. Otherwise, the type of the ModelElement property of this descriptor is used. If this descriptor is not bound to a model element, then the ModelElement type is returned.

.NET Framework Security

See Also

Reference

ElementPropertyDescriptor Class

Microsoft.VisualStudio.Modeling.Design Namespace

ElementTypeDescriptor

ModelElement