Share via


IVsParseCommandLine.QuoteParam(String, String) Method

Definition

Quote a parameter string and escape characters within the string appropriately.

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

Parameters

szParam
String

[in] String containing the parameter to quote.

pbstrQuotedParam
String

[out] Pointer to the quoted parameter string.

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::QuoteParam(  
   [in] LPCOLESTR szParam,   
   [out, retval] BSTR* pbstrQuotedParam  
);  

Applies to