CommaDelimitedStringCollection.AddRange(String[]) メソッド
定義
文字列配列のすべての文字列をコレクションに追加します。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())
パラメーター
- range
- String[]
コレクションに追加する文字列の配列。An array of strings to add to the collection.
例
次のコード例は、AddRange メソッドの使用方法を示します。The following code example demonstrates how to use the AddRange method. このコード例は、クラスの概要に用意されている大規模な例の一部です CommaDelimitedStringCollection 。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()))
注釈
パラメーターは、 range
コンマ区切りの文字列ではなく配列である必要があります。The range
parameter must be an array rather than a comma-delimited string.