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
'Declaration
Public Shared Function Register(Of TOwner) ( _
name As String, _
action As VerbActionCallback _
) As GelVerb
public static GelVerb Register<TOwner>(
string name,
VerbActionCallback action
)
public:
generic<typename TOwner>
static GelVerb^ Register(
String^ name,
VerbActionCallback^ action
)
static member Register :
name:string *
action:VerbActionCallback -> GelVerb
JScript does not support generic types or methods.
Type Parameters
- TOwner
Owner of the registered [GelVerb].
Parameters
name
Type: System.StringName of the verb to register.
action
Type: Microsoft.Internal.VisualStudio.PlatformUI.VerbActionCallbackCallback 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.