Share via


ElementTypeDescriptionProvider.CreateTypeDescriptor Method (ICustomTypeDescriptor, ModelElement)

Creates a custom type descriptor.

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

Syntax

'Declaration
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: ICustomTypeDescriptor

    The parent 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

See Also

Reference

ElementTypeDescriptionProvider Class

CreateTypeDescriptor Overload

Microsoft.VisualStudio.Modeling.Design Namespace