IVsDebuggableProtocol.AddDebuggableProtocol Method

Adds a protocol to the debuggable protocol list.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'宣言
Function AddDebuggableProtocol ( _
    bstrProtocol As String _
) As Integer
'使用
Dim instance As IVsDebuggableProtocol
Dim bstrProtocol As String
Dim returnValue As Integer

returnValue = instance.AddDebuggableProtocol(bstrProtocol)
int AddDebuggableProtocol(
    string bstrProtocol
)
int AddDebuggableProtocol(
    [InAttribute] String^ bstrProtocol
)
function AddDebuggableProtocol(
    bstrProtocol : String
) : int

Parameters

Return Value

Type: System.Int32

Returns S_OK if add is successful; returns S_FALSE if the addition is unsuccessful.

Remarks

COM Signature

From vsshell80.idl:

HRESULT IVsDebuggableProtocol::AddDebuggableProtocol(
   [in] LPOLESTR bstrProtocol
);

Permissions

See Also

Reference

IVsDebuggableProtocol Interface

IVsDebuggableProtocol Members

Microsoft.VisualStudio.Shell.Interop Namespace