GelVerb.Register<TOwner> Method
Microsoft internal use only.
Registers a GelVerb for a given owner of the registered [GelVerb].
Namespace: Microsoft.Internal.VisualStudio.PlatformUI
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
‘선언
Public Shared Function Register(Of TOwner) ( _
name As String, _
action As VerbActionCallback _
) As GelVerb
public static GelVerb Register<TOwner>(
string name,
VerbActionCallback action
)
Type Parameters
- TOwner
Owner of the registered [GelVerb].
Parameters
- name
Type: System.String
Name of the verb to register.
- action
Type: Microsoft.Internal.VisualStudio.PlatformUI.VerbActionCallback
Callback that is called when the verb is invoked.
Return Value
Type: Microsoft.Internal.VisualStudio.PlatformUI.GelVerb
The registered [GelVerb].
.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.