ICodeNavigate.DisplayDefaultEventHandler Method
Displays the default event handler.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'宣言
Function DisplayDefaultEventHandler ( _
lpstrObjectName As String _
) As Integer
'使用
Dim instance As ICodeNavigate
Dim lpstrObjectName As String
Dim returnValue As Integer
returnValue = instance.DisplayDefaultEventHandler(lpstrObjectName)
int DisplayDefaultEventHandler(
string lpstrObjectName
)
int DisplayDefaultEventHandler(
[InAttribute] String^ lpstrObjectName
)
function DisplayDefaultEventHandler(
lpstrObjectName : String
) : int
Parameters
lpstrObjectName
Type: System.String[in] Pointer to a string that contains the default event handler.
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 designer.idl:
HRESULT ICodeNavigate::DisplayDefaultEventHandler(
[in] LPCOLESTR lpstrObjectName
);
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.