CodeGenerationUtilities.HasCustomTypeDescriptor Method
Returns true if the given class has a custom type descriptor defined, false otherwise.
Namespace: Microsoft.VisualStudio.Modeling.DslDefinition
Assembly: Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.10.0.dll)
Syntax
'宣告
Public Shared Function HasCustomTypeDescriptor ( _
domainClass As DomainClass _
) As Boolean
public static bool HasCustomTypeDescriptor(
DomainClass domainClass
)
public:
static bool HasCustomTypeDescriptor(
DomainClass^ domainClass
)
static member HasCustomTypeDescriptor :
domainClass:DomainClass -> bool
public static function HasCustomTypeDescriptor(
domainClass : DomainClass
) : boolean
Parameters
- domainClass
Type: Microsoft.VisualStudio.Modeling.DslDefinition.DomainClass
Return Value
Type: System.Boolean
Remarks
A custom type descriptor is defined if either the "CustomCoded" property is true, or if it has one or more property paths defined.
.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.