다음을 통해 공유


IVsParseCommandLine.GetParam(Int32, String) Method

Definition

Returns a parameter by index.

public:
 int GetParam(int iIndex, [Runtime::InteropServices::Out] System::String ^ % pbstrParam);
int GetParam(int iIndex, [Runtime::InteropServices::Out] std::wstring const & & pbstrParam);
public int GetParam (int iIndex, out string pbstrParam);
abstract member GetParam : int * string -> int
Public Function GetParam (iIndex As Integer, ByRef pbstrParam As String) As Integer

Parameters

iIndex
Int32

[in] Index for the parameter to return.

pbstrParam
String

[out] Pointer to a string containing the parameter.

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::GetParam(  
   [in] int iIndex,   
   [out, retval] BSTR* pbstrParam  
);  

Applies to