DomainDataDirectory.GetDomainModel Method (Type)

Gets a domain model by its implementation type.

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

Syntax

'Declaration
Public Function GetDomainModel ( _
    type As Type _
) As DomainModelInfo
'Usage
Dim instance As DomainDataDirectory 
Dim type As Type 
Dim returnValue As DomainModelInfo 

returnValue = instance.GetDomainModel(type)
public DomainModelInfo GetDomainModel(
    Type type
)
public:
DomainModelInfo^ GetDomainModel(
    Type^ type
)
public function GetDomainModel(
    type : Type
) : DomainModelInfo

Parameters

  • type
    Type: System.Type

    The implementation type for the domain model.

Return Value

Type: Microsoft.VisualStudio.Modeling.DomainModelInfo
A DomainModelInfo object with the specified name.

Exceptions

Exception Condition
ArgumentNullException

If a nulla null reference (Nothing in Visual Basic) reference (Nothing in Visual Basic) is passed in as an argument.

DomainDataNotFoundException

If the requested domain model is not found.

.NET Framework Security

See Also

Reference

DomainDataDirectory Class

DomainDataDirectory Members

GetDomainModel Overload

Microsoft.VisualStudio.Modeling Namespace