IVsDebugger2.GetEngineName Method
Given the GUID of a debugging engine, returns the name of the engine. Use this method with EnumDebugEngines to retrieve the names of all active debugging engines.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Syntax
'宣告
Function GetEngineName ( _
ByRef guidEngine As Guid, _
<OutAttribute> ByRef pbstrName As String _
) As Integer
'用途
Dim instance As IVsDebugger2
Dim guidEngine As Guid
Dim pbstrName As String
Dim returnValue As Integer
returnValue = instance.GetEngineName(guidEngine, _
pbstrName)
int GetEngineName(
ref Guid guidEngine,
out string pbstrName
)
int GetEngineName(
[InAttribute] Guid% guidEngine,
[OutAttribute] String^% pbstrName
)
abstract GetEngineName :
guidEngine:Guid byref *
pbstrName:string byref -> int
function GetEngineName(
guidEngine : Guid,
pbstrName : String
) : int
Parameters
- guidEngine
Type: System.Guid%
[in] The GUID of the debugging engine.
- pbstrName
Type: System.String%
[out] A string containing the name of the debugging engine.
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 vsshell80.idl:
HRESULT IVsDebugger2::GetEngineName(
[in] REFGUID guidEngine,
[out] BSTR *pbstrName
);
.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.