Condividi tramite


IVsParseCommandLine.QuoteParam Method

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

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

Syntax

'Declaration
Function QuoteParam ( _
    szParam As String, _
    <OutAttribute> ByRef pbstrQuotedParam As String _
) As Integer
int QuoteParam(
    string szParam,
    out string pbstrQuotedParam
)
int QuoteParam(
    [InAttribute] String^ szParam, 
    [OutAttribute] String^% pbstrQuotedParam
)
abstract QuoteParam : 
        szParam:string * 
        pbstrQuotedParam:string byref -> int
function QuoteParam(
    szParam : String, 
    pbstrQuotedParam : String
) : int

Parameters

  • szParam
    Type: String

    [in] String containing the parameter to quote.

  • pbstrQuotedParam
    Type: String%

    [out] Pointer to the quoted parameter string.

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

.NET Framework Security

See Also

Reference

IVsParseCommandLine Interface

Microsoft.VisualStudio.Shell.Interop Namespace