CommaDelimitedStringCollection.AddRange(String[]) 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.
Adds all the strings in a string array to the collection.
public:
void AddRange(cli::array <System::String ^> ^ range);
public void AddRange (string[] range);
override this.AddRange : string[] -> unit
Public Sub AddRange (range As String())
Parameters
- range
- String[]
An array of strings to add to the collection.
Examples
The following code example demonstrates how to use the AddRange method. This code example is part of a larger example provided for the CommaDelimitedStringCollection class overview.
// Add values to the CommaDelimitedStringCollection object.
myStrCollection.AddRange(
authorizationRuleCollection.Get(i).Users.ToString().Split(
",".ToCharArray()));
' Add values to the CommaDelimitedStringCollection object.
myStrCollection.AddRange( _
authorizationRuleCollection.Get(i).Users.ToString().Split( _
",".ToCharArray()))
Remarks
The range
parameter must be an array rather than a comma-delimited string.
Applies to
Sodelujte z nami v storitvi GitHub
Vir za to vsebino najdete v storitvi GitHub, kjer lahko tudi ustvarite in pregledate težave in zahtevke za uveljavitev sprememb. Če želite več informacij, glejte naš vodnik za sodelavce.