Condividi tramite


DomainDataDirectory.GetDomainModel Method (Type)

Gets a domain model by its implementation type.

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

Syntax

'Dichiarazione
Public Function GetDomainModel ( _
    type As Type _
) As DomainModelInfo
public DomainModelInfo GetDomainModel(
    Type type
)
public:
DomainModelInfo^ GetDomainModel(
    Type^ type
)
member GetDomainModel : 
        type:Type -> DomainModelInfo 
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

GetDomainModel Overload

Microsoft.VisualStudio.Modeling Namespace