ElementTypeDescriptor.ShouldCreateCollectionPropertyDescriptor Method
For the relationship and the instance level role players involved, return whether to create a property descriptor for the collections
Namespace: Microsoft.VisualStudio.Modeling.Design
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'Dichiarazione
Protected Overridable Function ShouldCreateCollectionPropertyDescriptor ( _
sourceRolePlayer As ModelElement, _
sourceRole As DomainRoleInfo _
) As Boolean
protected virtual bool ShouldCreateCollectionPropertyDescriptor(
ModelElement sourceRolePlayer,
DomainRoleInfo sourceRole
)
protected:
virtual bool ShouldCreateCollectionPropertyDescriptor(
ModelElement^ sourceRolePlayer,
DomainRoleInfo^ sourceRole
)
abstract ShouldCreateCollectionPropertyDescriptor :
sourceRolePlayer:ModelElement *
sourceRole:DomainRoleInfo -> bool
override ShouldCreateCollectionPropertyDescriptor :
sourceRolePlayer:ModelElement *
sourceRole:DomainRoleInfo -> bool
protected function ShouldCreateCollectionPropertyDescriptor(
sourceRolePlayer : ModelElement,
sourceRole : DomainRoleInfo
) : boolean
Parameters
- sourceRolePlayer
Type: Microsoft.VisualStudio.Modeling.ModelElement
Source role player. This will be null for a type-level TypeDescriptor.
- sourceRole
Type: Microsoft.VisualStudio.Modeling.DomainRoleInfo
Source role involved
Return Value
Type: System.Boolean
A flag indicating whether to create a property descriptor for a collection
Remarks
Default implementation only creates PropertyDescriptors for source element. The ExtensionExtendsElement.ModelElement collection is explicitly excluded.
.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.