Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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: ICustomTypeDescriptorThe parent type descriptor.
element
Type: Microsoft.VisualStudio.Modeling.ModelElementThe 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.