DomainDataDirectory.FindDomainModel Method (Type)

Finds a domain model by specifying its implementation type.

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

Syntax

'宣言
Public Function FindDomainModel ( _
    type As Type _
) As DomainModelInfo
'使用
Dim instance As DomainDataDirectory
Dim type As Type
Dim returnValue As DomainModelInfo

returnValue = instance.FindDomainModel(type)
public DomainModelInfo FindDomainModel(
    Type type
)
public:
DomainModelInfo^ FindDomainModel(
    Type^ type
)
public function FindDomainModel(
    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 ID or a null reference (Nothing in Visual Basic) if not found.

Remarks

If the domain model is not found, a null reference (Nothing in Visual Basic) is returned.

Permissions

See Also

Reference

DomainDataDirectory Class

DomainDataDirectory Members

FindDomainModel Overload

Microsoft.VisualStudio.Modeling Namespace