다음을 통해 공유


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

‘선언
Function GetParam ( _
    iIndex As Integer, _
    <OutAttribute> ByRef pbstrParam As String _
) As Integer
‘사용 방법
Dim instance As IVsParseCommandLine
Dim iIndex As Integer
Dim pbstrParam As String
Dim returnValue As Integer

returnValue = instance.GetParam(iIndex, _
    pbstrParam)
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: 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.

Remarks

COM Signature

From vsshell.idl:

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

.NET Framework Security

See Also

Reference

IVsParseCommandLine Interface

IVsParseCommandLine Members

Microsoft.VisualStudio.Shell.Interop Namespace