Compartilhar via


IVsParseCommandLine.GetSwitchCount(Int32) Method

Definition

Returns the number of switches in the command line.

public:
 int GetSwitchCount([Runtime::InteropServices::Out] int % piSwitchCount);
int GetSwitchCount([Runtime::InteropServices::Out] int & piSwitchCount);
public int GetSwitchCount (out int piSwitchCount);
abstract member GetSwitchCount : int -> int
Public Function GetSwitchCount (ByRef piSwitchCount As Integer) As Integer

Parameters

piSwitchCount
Int32

[out] Pointer to an integer containing the number of switches.

Returns

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsParseCommandLine::GetSwitchCount(  
   [out, retval] int* piSwitchCount  
);  

Applies to