Removes an event handler for a particular domain model.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)
Syntax
'宣言
Public Sub Remove ( _
domainModel As DomainModelInfo, _
handler As Delegate _
)
'使用
Dim instance As ElementEventManager
Dim domainModel As DomainModelInfo
Dim handler As Delegate
instance.Remove(domainModel, handler)
public void Remove(
DomainModelInfo domainModel,
Delegate handler
)
public:
void Remove(
DomainModelInfo^ domainModel,
Delegate^ handler
)
public function Remove(
domainModel : DomainModelInfo,
handler : Delegate
)
Parameters
domainModel
Type: Microsoft.VisualStudio.Modeling.DomainModelInfoThe domain model whose event handler is to be removed.
handler
Type: System.DelegateThe event handler.
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.