Freigeben über


IVsParseCommandLine.GetRawSwitch Method

Returns a raw, unparsed switch by index.

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

Syntax

'Declaration
Function GetRawSwitch ( _
    iIndex As Integer, _
    <OutAttribute> ByRef pbstrRawSwitch As String _
) As Integer
int GetRawSwitch(
    int iIndex,
    out string pbstrRawSwitch
)
int GetRawSwitch(
    [InAttribute] int iIndex, 
    [OutAttribute] String^% pbstrRawSwitch
)
abstract GetRawSwitch : 
        iIndex:int * 
        pbstrRawSwitch:string byref -> int
function GetRawSwitch(
    iIndex : int, 
    pbstrRawSwitch : String
) : int

Parameters

  • iIndex
    Type: Int32

    [in] Index of the switch to return.

  • pbstrRawSwitch
    Type: String%

    [out] Pointer to a string containing the raw, unparsed switch.

Return Value

Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsParseCommandLine::GetRawSwitch(
   [in] int iIndex, 
   [out, retval] BSTR* pbstrRawSwitch
);

.NET Framework Security

See Also

Reference

IVsParseCommandLine Interface

Microsoft.VisualStudio.Shell.Interop Namespace