Utility.GetAndRemoveParameter Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetAndRemoveParameter(List<KeyValuePair<String,String>>, Int32) |
Retrieves a specific parameter by line number |
GetAndRemoveParameter(List<KeyValuePair<String,String>>, String) |
Takes a parameter list from a prior call to SplitLines and retrieves a specific parameter by name. The parameter is removed from the list so it can only be retrieved once with this call. |
GetAndRemoveParameter(List<KeyValuePair<String,String>>, Int32)
Retrieves a specific parameter by line number
public:
static System::String ^ GetAndRemoveParameter(System::Collections::Generic::List<System::Collections::Generic::KeyValuePair<System::String ^, System::String ^>> ^ parameters, int line);
public static string GetAndRemoveParameter (System.Collections.Generic.List<System.Collections.Generic.KeyValuePair<string,string>> parameters, int line);
static member GetAndRemoveParameter : System.Collections.Generic.List<System.Collections.Generic.KeyValuePair<string, string>> * int -> string
Public Shared Function GetAndRemoveParameter (parameters As List(Of KeyValuePair(Of String, String)), line As Integer) As String
Parameters
- parameters
- List<KeyValuePair<String,String>>
Specifies the parameter list from a previous call to SplitLines.
- line
- Int32
Specifies the line number to retrieve.
Returns
The value from the parameter
Applies to
GetAndRemoveParameter(List<KeyValuePair<String,String>>, String)
Takes a parameter list from a prior call to SplitLines and retrieves a specific parameter by name. The parameter is removed from the list so it can only be retrieved once with this call.
public:
static System::String ^ GetAndRemoveParameter(System::Collections::Generic::List<System::Collections::Generic::KeyValuePair<System::String ^, System::String ^>> ^ parameters, System::String ^ p);
public static string GetAndRemoveParameter (System.Collections.Generic.List<System.Collections.Generic.KeyValuePair<string,string>> parameters, string p);
static member GetAndRemoveParameter : System.Collections.Generic.List<System.Collections.Generic.KeyValuePair<string, string>> * string -> string
Public Shared Function GetAndRemoveParameter (parameters As List(Of KeyValuePair(Of String, String)), p As String) As String
Parameters
- parameters
- List<KeyValuePair<String,String>>
Specifies the parameter list.
- p
- String
Specifies the name of the parameter to retrieve
Returns
The value from the parameter.