ConfigurationLockCollection.SetFromList メソッド
アセンブリ: System.Configuration (system.configuration.dll 内)

Dim instance As ConfigurationLockCollection Dim attributeList As String instance.SetFromList(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);

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からConfigurationLockCollection.SetFromList メソッドを検索する場合は、下記のリンクをクリックしてください。

- ConfigurationLockCollection.SetFromList メソッドのページへのリンク