SettingsProviderCollection.Item[String] 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得集合中與指定名稱相符的設定提供者。
public:
property System::Configuration::SettingsProvider ^ default[System::String ^] { System::Configuration::SettingsProvider ^ get(System::String ^ name); };
public System.Configuration.SettingsProvider this[string name] { get; }
member this.Item(string) : System.Configuration.SettingsProvider
Default Public ReadOnly Property Item(name As String) As SettingsProvider
參數
屬性值
若找到,該SettingsProvider名稱與名稱參數所指定相符;否則,。 null
例外狀況
參數 name 為 null。
設定此值時,集合為唯讀。
備註
你可以用這個SettingsProviderCollection方法做SetReadOnly成唯讀。 然而,對於 Add像 、 Remove以及 Clear 這樣的集合上的方法,它無效。