共用方式為


CodeGenerationUtilities.IsRootClass Method

If a DomainClass is a root class, all its serialization-related methods/properties will be virtual (unless it's sealed); otherwise, these methods/properties will be "override" and will call base implementations. Currently, a DomainClass is a root class if it derives from Microsoft.VisualStudio.Modeling.ModelElement or Microsoft.VisualStudio.Modeling.ElementLink directly.

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 IsRootClass ( _
    domainClass As DomainClass _
) As Boolean
public static bool IsRootClass(
    DomainClass domainClass
)
public:
static bool IsRootClass(
    DomainClass^ domainClass
)
static member IsRootClass : 
        domainClass:DomainClass -> bool 
public static function IsRootClass(
    domainClass : DomainClass
) : boolean

Parameters

Return Value

Type: System.Boolean

Remarks

Note that this method is not intended to be used with ModelElement or ElementLink directly.

.NET Framework Security

See Also

Reference

CodeGenerationUtilities Class

Microsoft.VisualStudio.Modeling.DslDefinition Namespace