ElementTypeDescriptionProvider.CreateTypeDescriptor Method (ICustomTypeDescriptor, ModelElement)
Creates a custom type descriptor.
Namespace: Microsoft.VisualStudio.Modeling.Design
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'宣告
Protected Overridable Function CreateTypeDescriptor ( _
parent As ICustomTypeDescriptor, _
element As ModelElement _
) As ElementTypeDescriptor
protected virtual ElementTypeDescriptor CreateTypeDescriptor(
ICustomTypeDescriptor parent,
ModelElement element
)
protected:
virtual ElementTypeDescriptor^ CreateTypeDescriptor(
ICustomTypeDescriptor^ parent,
ModelElement^ element
)
abstract CreateTypeDescriptor :
parent:ICustomTypeDescriptor *
element:ModelElement -> ElementTypeDescriptor
override CreateTypeDescriptor :
parent:ICustomTypeDescriptor *
element:ModelElement -> ElementTypeDescriptor
protected function CreateTypeDescriptor(
parent : ICustomTypeDescriptor,
element : ModelElement
) : ElementTypeDescriptor
Parameters
- parent
Type: System.ComponentModel.ICustomTypeDescriptor
The parent type descriptor.
- element
Type: Microsoft.VisualStudio.Modeling.ModelElement
The object for which to retrieve the type descriptor.
Return Value
Type: Microsoft.VisualStudio.Modeling.Design.ElementTypeDescriptor
A new custom type descriptor.
Exceptions
Exception | Condition |
---|---|
ArgumentException | element is nulla null reference (Nothing in Visual Basic). |
.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.