VsUtilities.GetCommandLineOption Method (String, String%)
Returns an option value from the VS command line.
Namespace: Microsoft.VisualStudio.Data.Schema.Project.Common.Host
Assembly: Microsoft.VisualStudio.Data.Schema.Project (in Microsoft.VisualStudio.Data.Schema.Project.dll)
Syntax
'Declaration
Public Shared Function GetCommandLineOption ( _
optionName As String, _
<OutAttribute> ByRef optionValue As String _
) As Boolean
'Usage
Dim optionName As String
Dim optionValue As String
Dim returnValue As Boolean
returnValue = VsUtilities.GetCommandLineOption(optionName, _
optionValue)
public static bool GetCommandLineOption(
string optionName,
out string optionValue
)
public:
static bool GetCommandLineOption(
String^ optionName,
[OutAttribute] String^% optionValue
)
public static function GetCommandLineOption(
optionName : String,
optionValue : String
) : boolean
static member GetCommandLineOption :
optionName:string *
optionValue:string -> bool
Parameters
- optionName
Type: System.String
The option name
- optionValue
Type: System.String%
The option value
Return Value
Type: System.Boolean
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio.Data.Schema.Project.Common.Host Namespace