Udostępnij za pośrednictwem


ElementPropertyDescriptor.GetElementPropertyDescriptor Method

Definition

Gets the ElementPropertyDescriptor given a ModelElement and DomainPropertyInfo.

public:
 static Microsoft::VisualStudio::Modeling::Design::ElementPropertyDescriptor ^ GetElementPropertyDescriptor(Microsoft::VisualStudio::Modeling::ModelElement ^ element, Microsoft::VisualStudio::Modeling::DomainPropertyInfo ^ propertyInfo);
public static Microsoft.VisualStudio.Modeling.Design.ElementPropertyDescriptor GetElementPropertyDescriptor (Microsoft.VisualStudio.Modeling.ModelElement element, Microsoft.VisualStudio.Modeling.DomainPropertyInfo propertyInfo);
static member GetElementPropertyDescriptor : Microsoft.VisualStudio.Modeling.ModelElement * Microsoft.VisualStudio.Modeling.DomainPropertyInfo -> Microsoft.VisualStudio.Modeling.Design.ElementPropertyDescriptor
Public Shared Function GetElementPropertyDescriptor (element As ModelElement, propertyInfo As DomainPropertyInfo) As ElementPropertyDescriptor

Parameters

element
ModelElement

The element to find the descriptor for

propertyInfo
DomainPropertyInfo

The property to find the descriptor for

Returns

The ElementPropertyDescriptor corresponding to the inputs. Returns null if one is not found.

Applies to