IVsParseCommandLine.GetSwitchValue Method
Gets the parsed value of a switch by index.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
Function GetSwitchValue ( _
iSwitchIndex As Integer, _
<OutAttribute> ByRef pbstrValue As String _
) As Integer
int GetSwitchValue(
int iSwitchIndex,
out string pbstrValue
)
int GetSwitchValue(
[InAttribute] int iSwitchIndex,
[OutAttribute] String^% pbstrValue
)
abstract GetSwitchValue :
iSwitchIndex:int *
pbstrValue:string byref -> int
function GetSwitchValue(
iSwitchIndex : int,
pbstrValue : String
) : int
Parameters
iSwitchIndex
Type: Int32[in] Index of the switch value to return.
pbstrValue
Type: String%[out] Pointer to a string containing the switch value.
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::GetSwitchValue(
[in] int iSwitchIndex,
[out, retval] BSTR* pbstrValue
);
.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.