GelVerb.FromName Method
Microsoft internal use only.
Gets the GelVerb with the given name that was registered on the given Type.
Namespace: Microsoft.Internal.VisualStudio.PlatformUI
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
‘선언
Public Shared Function FromName ( _
ownerType As Type, _
name As String _
) As GelVerb
public static GelVerb FromName(
Type ownerType,
string name
)
Parameters
- ownerType
Type: System.Type
Type of the verb owner.
- name
Type: System.String
Name of the verb.
Return Value
Type: Microsoft.Internal.VisualStudio.PlatformUI.GelVerb
[GelVerb] registered for the given Type with the given name.
Remarks
Throws KeyNotFoundException if the name is not found.
.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.