IVsParseCommandLine::GetParam Method (Int32, String^)

 

Returns a parameter by index.

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

int GetParam(
	int iIndex,
	[OutAttribute] String^% pbstrParam
)

Parameters

iIndex
Type: System::Int32

[in] Index for the parameter to return.

pbstrParam
Type: System::String^

[out] Pointer to a string containing the parameter.

Return Value

Type: System::Int32

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

From vsshell.idl:

HRESULT IVsParseCommandLine::GetParam(
   [in] int iIndex, 
   [out, retval] BSTR* pbstrParam
);
Return to top
Show: