Share via


ElementTypeDescriptor.ShouldCreatePropertyDescriptor Method

Returns a value that indicates whether a descriptor should be created for the specified domain property.

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

Syntax

'Declaration
Protected Overridable Function ShouldCreatePropertyDescriptor ( _
    requestor As ModelElement, _
    domainProperty As DomainPropertyInfo _
) As Boolean
protected virtual bool ShouldCreatePropertyDescriptor(
    ModelElement requestor,
    DomainPropertyInfo domainProperty
)
protected:
virtual bool ShouldCreatePropertyDescriptor(
    ModelElement^ requestor, 
    DomainPropertyInfo^ domainProperty
)
abstract ShouldCreatePropertyDescriptor : 
        requestor:ModelElement * 
        domainProperty:DomainPropertyInfo -> bool 
override ShouldCreatePropertyDescriptor : 
        requestor:ModelElement * 
        domainProperty:DomainPropertyInfo -> bool 
protected function ShouldCreatePropertyDescriptor(
    requestor : ModelElement, 
    domainProperty : DomainPropertyInfo
) : boolean

Parameters

Return Value

Type: System.Boolean
The value of the Browsable property of the BrowsableAttribute attribute of the domain property; or true, if the property does not have a BrowsableAttribute.

Exceptions

Exception Condition
ArgumentNullException

domainProperty is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

ElementTypeDescriptor Class

Microsoft.VisualStudio.Modeling.Design Namespace