Register an IMonikerResolver for the specified domain model.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)
Syntax
'宣言
Public Sub AddMonikerResolver ( _
domainModelId As Guid, _
monikerResolver As IMonikerResolver _
)
'使用
Dim instance As Store
Dim domainModelId As Guid
Dim monikerResolver As IMonikerResolver
instance.AddMonikerResolver(domainModelId, _
monikerResolver)
public void AddMonikerResolver(
Guid domainModelId,
IMonikerResolver monikerResolver
)
public:
void AddMonikerResolver(
Guid domainModelId,
IMonikerResolver^ monikerResolver
)
public function AddMonikerResolver(
domainModelId : Guid,
monikerResolver : IMonikerResolver
)
Parameters
domainModelId
Type: System.GuidThe ID of the domain model that will get the new IMonikerResolver.
monikerResolver
Type: Microsoft.VisualStudio.Modeling.IMonikerResolverThe IMonikerResolver for the specified domain model.
Remarks
If there is a resolver already registered for this domain model, it will be replaced by the new one.
Setting the monikerResolver to a null reference (Nothing in Visual Basic) removes the resolver associated with the specified domain model.
Permissions
- 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.