ConfigurationLockCollection.SetFromList メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > ConfigurationLockCollection.SetFromList メソッドの意味・解説 

ConfigurationLockCollection.SetFromList メソッド

メモ : このメソッドは、.NET Framework version 2.0新しく追加されたものです。

指定されリスト基づいて構成オブジェクトセットロックします

名前空間: System.Configuration
アセンブリ: System.Configuration (system.configuration.dll 内)
構文構文

Public Sub SetFromList ( _
    attributeList As String _
)
Dim instance As ConfigurationLockCollection
Dim attributeList As String

instance.SetFromList(attributeList)
public void SetFromList (
    string attributeList
)
public:
void SetFromList (
    String^ attributeList
)
public void SetFromList (
    String attributeList
)
public function SetFromList (
    attributeList : String
)

パラメータ

attributeList

コンマ区切り文字列

例外例外
例外種類条件

ConfigurationErrorsException

attributeList パラメータ内の項目がロックできる有効な構成属性ではない場合発生します

使用例使用例

SetFromList メソッド使用する方法次のコード例示します。このコード例は、ConfigurationLockCollection クラストピック取り上げているコード例一部分です。

' Create an ArrayList to contain
' the property items of the configuration
' section.
Dim configPropertyAL As ArrayList = _
 New ArrayList(lockedAttribList.Count)
For Each propertyItem As
 _
 PropertyInformation In _
 configSection.ElementInformation.Properties
  configPropertyAL.Add(propertyItem.Name.ToString())
Next
' Copy the elements of the ArrayList to a string array.
Dim myArr As [String]() = _
CType(configPropertyAL.ToArray(GetType(String)),
 [String]())
' Create as a comma delimited list.
Dim propList As String =
 String.Join(",", myArr)
' Lock the items in the list.
lockedAttribList.SetFromList(propList)
// Create an ArrayList to contain
// the property items of the configuration
// section.
ArrayList configPropertyAL = new ArrayList(lockedAttribList.Count);
foreach (PropertyInformation propertyItem in
  configSection.ElementInformation.Properties)
{
  configPropertyAL.Add(propertyItem.Name.ToString());
}
// Copy the elements of the ArrayList to a string array.
String[] myArr = (String[])configPropertyAL.ToArray(typeof(string));
// Create as a comma delimited list.
string propList = string.Join(",",
 myArr);
// Lock the items in the list.
lockedAttribList.SetFromList(propList);
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ConfigurationLockCollection クラス
ConfigurationLockCollection メンバ
System.Configuration 名前空間


このページでは「.NET Framework クラス ライブラリ リファレンス」からConfigurationLockCollection.SetFromList メソッドを検索した結果を表示しています。
Weblioに収録されているすべての辞書からConfigurationLockCollection.SetFromList メソッドを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からConfigurationLockCollection.SetFromList メソッド を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

ConfigurationLockCollection.SetFromList メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



ConfigurationLockCollection.SetFromList メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS