DomainDataDirectory.GetDomainModel Method (Guid)
Gets a domain model with a specific ID.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'宣告
Public Function GetDomainModel ( _
id As Guid _
) As DomainModelInfo
public DomainModelInfo GetDomainModel(
Guid id
)
public:
DomainModelInfo^ GetDomainModel(
Guid id
)
member GetDomainModel :
id:Guid -> DomainModelInfo
public function GetDomainModel(
id : Guid
) : DomainModelInfo
Parameters
- id
Type: System.Guid
The ID of the domain model.
Return Value
Type: Microsoft.VisualStudio.Modeling.DomainModelInfo
A DomainModelInfo object with the specified ID.
Exceptions
Exception | Condition |
---|---|
DomainDataNotFoundException | If the requested domain model is not found. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.