Store.GetDomainModel<T> Method
Gets an instance of a specified domain model type.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'宣告
Public Function GetDomainModel(Of T As DomainModel) As T
public T GetDomainModel<T>()
where T : DomainModel
public:
generic<typename T>
where T : DomainModel
T GetDomainModel()
member GetDomainModel : unit -> 'T when 'T : DomainModel
JScript does not support generic types or methods.
Type Parameters
- T
Domain model type.
Return Value
Type: T
Instance of the domain model.
.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.