ElementPropertyDescriptor.GetElementPropertyDescriptor Method
Gets the ElementPropertyDescriptor given a ModelElement and DomainPropertyInfo.
Namespace: Microsoft.VisualStudio.Modeling.Design
Assembly: Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
Syntax
'Declaration
Public Shared Function GetElementPropertyDescriptor ( _
element As ModelElement, _
propertyInfo As DomainPropertyInfo _
) As ElementPropertyDescriptor
public static ElementPropertyDescriptor GetElementPropertyDescriptor(
ModelElement element,
DomainPropertyInfo propertyInfo
)
public:
static ElementPropertyDescriptor^ GetElementPropertyDescriptor(
ModelElement^ element,
DomainPropertyInfo^ propertyInfo
)
static member GetElementPropertyDescriptor :
element:ModelElement *
propertyInfo:DomainPropertyInfo -> ElementPropertyDescriptor
public static function GetElementPropertyDescriptor(
element : ModelElement,
propertyInfo : DomainPropertyInfo
) : ElementPropertyDescriptor
Parameters
element
Type: Microsoft.VisualStudio.Modeling.ModelElementThe element to find the descriptor for
propertyInfo
Type: Microsoft.VisualStudio.Modeling.DomainPropertyInfoThe property to find the descriptor for
Return Value
Type: Microsoft.VisualStudio.Modeling.Design.ElementPropertyDescriptor
The ElementPropertyDescriptor corresponding to the inputs. Returns null if one is not found.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.