DomainClassInfo Class

 

Represents a domain class.

Namespace:   Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)


public ref class DomainClassInfo : DomainObjectInfo

NameDescription
System_CAPS_pubpropertyAllDescendants

Gets a list of all domain classes derived from this class.

System_CAPS_pubpropertyAllDomainProperties

Gets a list of domain properties declared on this domain class.

System_CAPS_pubpropertyAllDomainRolesPlayed

Gets a read-only list of all the domain roles played by this class or its ascendants.

System_CAPS_pubpropertyAllEmbeddedByDomainRoles

Gets a list of domain roles which embed this domain class.

System_CAPS_pubpropertyBaseDomainClass

Gets the domain class that this domain class inherits from.

System_CAPS_pubpropertyDefaultDomainProperty

Gets the default domain property for this domain class.

System_CAPS_pubpropertyDisplayName

Gets the display name of the element.(Inherited from DomainObjectInfo.)

System_CAPS_pubpropertyDomainModel

Gets the domain model that this domain class belongs to.(Overrides DomainObjectInfo::DomainModel.)

System_CAPS_pubpropertyId

Gets the ID of the element.(Inherited from DomainObjectInfo.)

System_CAPS_pubpropertyImplementationClass

Gets the implementation type of this domain class.

System_CAPS_pubpropertyIsValidationEnabled

Gets whether validation is enabled for this domain class.

System_CAPS_pubpropertyLocalDescendants

Gets a list of domain classes derived directly from this class.

System_CAPS_pubpropertyLocalDomainProperties

Gets a list of the domain properties declared in this domain class.

System_CAPS_pubpropertyLocalDomainRolesPlayed

Gets a list of the domain roles played by this domain class.

System_CAPS_pubpropertyName

Gets the name of the element.(Inherited from DomainObjectInfo.)

System_CAPS_pubpropertyNameDomainProperty

Gets the element name property for this domain class.

NameDescription
System_CAPS_pubmethodEquals(Object^)

Equality is based on the ID of the DomainClassInfo object.(Overrides Object::Equals(Object^).)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodFindDomainProperty(String^, Boolean)

Finds a domain property that is defined in this domain class.

System_CAPS_pubmethodSystem_CAPS_staticFindEmbeddingElement(ModelElement^)

Finds the embedding container for this element.

System_CAPS_pubmethodSystem_CAPS_staticFindEmbeddingElementLink(ModelElement^)

Finds embedding link for this element.

System_CAPS_pubmethodGetHashCode()

Hashcode is based on the ID of this object(Overrides Object::GetHashCode().)

System_CAPS_pubmethodSystem_CAPS_staticGetName(ModelElement^)

Gets the name of the element.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticHasNameProperty(ModelElement^)

Indicates whether an element has a name.

System_CAPS_pubmethodIsDerivedFrom(DomainClassInfo^)

Indicates whether this domain class is derived from a specified domain class.

System_CAPS_pubmethodIsDerivedFrom(Guid)

Indicates whether this domain class is derived from a specified domain class.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticSetName(ModelElement^, String^)

Sets the name of the element.

System_CAPS_pubmethodSystem_CAPS_staticSetUniqueName(ModelElement^)

Assigns an element a unique name.

System_CAPS_pubmethodSystem_CAPS_staticSetUniqueName(ModelElement^, String^)

Assigns an element a unique name.

System_CAPS_pubmethodToString()

Converts the element to a string.(Inherited from DomainObjectInfo.)

System_CAPS_pubmethodSystem_CAPS_staticTryGetName(ModelElement^, String^)

Verifies whether the element has a name and returns the name if it exists.

There is a DomainClassInfo object for each domain class in a domain model.

For example, if the definition of a domain model has a class A that derives from domain class B and has a relationship to domain class C, then there will be three DomainClassInfo objects, one DomainClassInfo object for each domain class.

You access DomainClassInfo objects using the DomainDataDirectory of a store.

Store mystore = new Store(somefile);
ICollection<DomainClassInfo> dclasses =  Mystore.DomainDataDirectory.DomainClasses.get_DomainClasses();
// foreach …

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: