ElementTypeDescriptor::ShouldCreatePropertyDescriptor Method (ModelElement^, DomainPropertyInfo^)
Visual Studio 2015
Returns a value that indicates whether a descriptor should be created for the specified domain property.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
protected: virtual bool ShouldCreatePropertyDescriptor( ModelElement^ requestor, DomainPropertyInfo^ domainProperty )
Parameters
- requestor
-
Type:
Microsoft.VisualStudio.Modeling::ModelElement^
The model element that has the domain property.
- domainProperty
-
Type:
Microsoft.VisualStudio.Modeling::DomainPropertyInfo^
The domain property to return a value for.
Return Value
Type: System::BooleanThe value of the Browsable property of the BrowsableAttribute attribute of the domain property; or true, if the property does not have a BrowsableAttribute.
| Exception | Condition |
|---|---|
| ArgumentNullException | domainProperty is null. |
Show: