Udostępnij za pośrednictwem


Store.GetDomainModel Method

Definition

Overloads

GetDomainModel(Guid)

Gets domain model by its Id. This method will throw if domain model if not found.

GetDomainModel<T>()

Gets domain model instance of specified type.

GetDomainModel(Guid)

Gets domain model by its Id. This method will throw if domain model if not found.

public:
 Microsoft::VisualStudio::Modeling::DomainModel ^ GetDomainModel(Guid domainModelId);
public Microsoft.VisualStudio.Modeling.DomainModel GetDomainModel (Guid domainModelId);
member this.GetDomainModel : Guid -> Microsoft.VisualStudio.Modeling.DomainModel
Public Function GetDomainModel (domainModelId As Guid) As DomainModel

Parameters

domainModelId
Guid

Domain model Id to look for.

Returns

DomainModel instance.

Exceptions

Applies to

GetDomainModel<T>()

Gets domain model instance of specified type.

public:
generic <typename T>
 where T : Microsoft::VisualStudio::Modeling::DomainModel T GetDomainModel();
public T GetDomainModel<T> () where T : Microsoft.VisualStudio.Modeling.DomainModel;
member this.GetDomainModel : unit -> 'T (requires 'T :> Microsoft.VisualStudio.Modeling.DomainModel)
Public Function GetDomainModel(Of T As DomainModel) () As T

Type Parameters

T

Domain model type.

Returns

T

Instance of domain model.

Exceptions

Applies to