다음을 통해 공유


IVsParseCommandLine.GetParam Method

Returns a parameter by index.

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

Syntax

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

Parameters

  • iIndex
    Type: Int32

    [in] Index for the parameter to return.

  • pbstrParam
    Type: String%

    [out] Pointer to a string containing the parameter.

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

.NET Framework Security

See Also

Reference

IVsParseCommandLine Interface

Microsoft.VisualStudio.Shell.Interop Namespace