Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'宣言
Function GetCustomMenuInfo ( _
pUnkCmdReserved As Object, _
pDispReserved As Object, _
dwType As UInteger, _
dwPosition As UInteger, _
<OutAttribute> ByRef pguidCmdGroup As Guid, _
<OutAttribute> ByRef pdwMenuID As Integer _
) As Integer
'使用
Dim instance As IVsWebBrowserUser
Dim pUnkCmdReserved As Object
Dim pDispReserved As Object
Dim dwType As UInteger
Dim dwPosition As UInteger
Dim pguidCmdGroup As Guid
Dim pdwMenuID As Integer
Dim returnValue As Integer
returnValue = instance.GetCustomMenuInfo(pUnkCmdReserved, _
pDispReserved, dwType, dwPosition, _
pguidCmdGroup, pdwMenuID)
int GetCustomMenuInfo(
Object pUnkCmdReserved,
Object pDispReserved,
uint dwType,
uint dwPosition,
out Guid pguidCmdGroup,
out int pdwMenuID
)
int GetCustomMenuInfo(
[InAttribute] Object^ pUnkCmdReserved,
[InAttribute] Object^ pDispReserved,
[InAttribute] unsigned int dwType,
[InAttribute] unsigned int dwPosition,
[OutAttribute] Guid% pguidCmdGroup,
[OutAttribute] int% pdwMenuID
)
function GetCustomMenuInfo(
pUnkCmdReserved : Object,
pDispReserved : Object,
dwType : uint,
dwPosition : uint,
pguidCmdGroup : Guid,
pdwMenuID : int
) : int
Parameters
pUnkCmdReserved
Type: System.Object[in]
pDispReserved
Type: System.Object[in]
dwType
Type: System.UInt32[in]
dwPosition
Type: System.UInt32[in]
pguidCmdGroup
Type: System.Guid%[in]
pdwMenuID
Type: System.Int32%[in]
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From vsbrowse.idl:
[C++]
HRESULT IVsWebBrowserUser::GetCustomMenuInfo(
[in] IUnknown* pUnkCmdReserved,
[in] IDispatch* pDispReserved,
[in] DWORD dwType,
[in] DWORD dwPosition,
[out] GUID* pguidCmdGroup,
[out] long* pdwMenuID
);
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.