ElementTypeDescriptor.ShouldCreatePropertyDescriptor Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
For a given domain property defined in the requestor model element, ShouldCreatePropertyDescriptor determines whether we should create a property descriptor or not. Note that the selectedElement provides the context where the intended property dsscriptor will be created from.
protected:
virtual bool ShouldCreatePropertyDescriptor(Microsoft::VisualStudio::Modeling::ModelElement ^ requestor, Microsoft::VisualStudio::Modeling::DomainPropertyInfo ^ domainProperty);
protected virtual bool ShouldCreatePropertyDescriptor (Microsoft.VisualStudio.Modeling.ModelElement requestor, Microsoft.VisualStudio.Modeling.DomainPropertyInfo domainProperty);
abstract member ShouldCreatePropertyDescriptor : Microsoft.VisualStudio.Modeling.ModelElement * Microsoft.VisualStudio.Modeling.DomainPropertyInfo -> bool
override this.ShouldCreatePropertyDescriptor : Microsoft.VisualStudio.Modeling.ModelElement * Microsoft.VisualStudio.Modeling.DomainPropertyInfo -> bool
Protected Overridable Function ShouldCreatePropertyDescriptor (requestor As ModelElement, domainProperty As DomainPropertyInfo) As Boolean
Parameters
- requestor
- ModelElement
Model Element for the given domain property info. This will be null for a type-level TypeDescriptor.
- domainProperty
- DomainPropertyInfo
Domain property of the passed in requestor model element class
Returns
A flag indicating whether to create a property descriptor for the property