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
- domainClass
Type: Microsoft.VisualStudio.Modeling.DslDefinition.DomainClass
Return Value
Type: System.Boolean
Remarks
Note that this method is not intended to be used with ModelElement or ElementLink directly.
.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.