共用方式為


CodeGenerationUtilities.IsRootClass(DomainClass) Method

Definition

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.

public:
 static bool IsRootClass(Microsoft::VisualStudio::Modeling::DslDefinition::DomainClass ^ domainClass);
public static bool IsRootClass (Microsoft.VisualStudio.Modeling.DslDefinition.DomainClass domainClass);
static member IsRootClass : Microsoft.VisualStudio.Modeling.DslDefinition.DomainClass -> bool
Public Shared Function IsRootClass (domainClass As DomainClass) As Boolean

Parameters

domainClass
DomainClass

Returns

Remarks

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

Applies to