PropertyDictionary 類別

定義

取得 PropertyDictionary 中包含的元素清單。

public ref class PropertyDictionary : Microsoft::SqlServer::Management::Data::IPropertyDictionary, Microsoft::SqlServer::Management::Sdk::Sfc::ISfcPropertyProvider, Microsoft::SqlServer::Management::Sdk::Sfc::ISfcPropertySet, System::Collections::Generic::ICollection<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>>, System::Collections::Generic::IDictionary<System::String ^, System::Object ^>, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>>, System::ComponentModel::INotifyPropertyChanged
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public class PropertyDictionary : Microsoft.SqlServer.Management.Data.IPropertyDictionary, Microsoft.SqlServer.Management.Sdk.Sfc.ISfcPropertyProvider, Microsoft.SqlServer.Management.Sdk.Sfc.ISfcPropertySet, System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string,object>>, System.Collections.Generic.IDictionary<string,object>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object>>, System.ComponentModel.INotifyPropertyChanged
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Serializable>]
type PropertyDictionary = class
    interface IPropertyDictionary
    interface ISfcPropertySet
    interface IDictionary<string, obj>
    interface ICollection<KeyValuePair<string, obj>>
    interface seq<KeyValuePair<string, obj>>
    interface IEnumerable
    interface ISfcPropertyProvider
    interface ISfcNotifyPropertyMetadataChanged
    interface INotifyPropertyChanged
Public Class PropertyDictionary
Implements ICollection(Of KeyValuePair(Of String, Object)), IDictionary(Of String, Object), IEnumerable(Of KeyValuePair(Of String, Object)), INotifyPropertyChanged, IPropertyDictionary, ISfcPropertyProvider, ISfcPropertySet
繼承
PropertyDictionary
衍生
屬性
實作

建構函式

名稱 Description
PropertyDictionary()

初始化一個新的類別實例 PropertyDictionary ,使用預設屬性值。

PropertyDictionary(IEnumerable<KeyValuePair<String,Object>>)

初始化一個具有指定屬性的 PropertyDictionary 類別新實例。

PropertyDictionary(ISfcPropertyProvider)

初始化一個以指定提供者為類別的新 PropertyDictionary 實例。

屬性

名稱 Description
Count

取得物業字典中的項目數量。

IsReadOnly

得到一個值,表示該屬性是否可被修改。

Item[String]

取得或設定位於指定索引鍵的專案。

Keys

拿到房產的鑰匙。

Values

取得包含字典中值的 ICollection 物件。

方法

名稱 Description
Add(IEnumerable<KeyValuePair<String,Object>>, PropertyCollisionResolution)

指定要加入字典的字串輸入。

Add(ISfcProperty, PropertyCollisionResolution)

指定要加入字典的字串值。

Add(ISfcProperty)

表示要加入字典的屬性。

Add(KeyValuePair<String,Object>, PropertyCollisionResolution)

表示字典中的附加值。

Add(KeyValuePair<String,Object>)

表示字典中需加入的指定字串值。

Add(String, Object, PropertyCollisionResolution)

表示要加入的屬性值,並指定鍵值、值與事件。

Add(String, Object)

將指定的索引鍵和值加入至字典。

Add(String, Type, PropertyCollisionResolution)

使用 PropertyCollisionResolution 表示要加入的屬性值。

Add(String, Type)

表示要加入的屬性價值,並指定名稱與類型。

Clear()

清理財產內容。 此類別無法獲得繼承。

Contains(ISfcProperty)

決定一個表示要包含的特定物件的值。

Contains(KeyValuePair<String,Object>)

提供 PropertyDictionary 的物件。

Contains(String)

判斷字典是否包含特定屬性名稱。

Contains<T>(String)

表示字典是否包含特定名稱的值。

ContainsKey(String)

判斷字典是否包含指定的索引鍵。

CopyTo(KeyValuePair<String,Object>[], Int32)

將字典條目複製到指定索引的一維陣列實例。

EnumProperties()

表示 PropertyDictionary 的可枚舉屬性。

GetEnumerator()

取得一個遍歷字典的枚舉器。

GetPropertySet()

表示 PropertyDictionary 中的特定屬性。

OnPropertyChanged(String)

表示某屬性的指定值,該屬性已被更改。

OnPropertyMetadataChanged(String)

當元資料中的屬性被更改時,會表示一個值。

Remove(KeyValuePair<String,Object>)

回傳一個表示要移除物件的值。

Remove(String)

從集合中移除具有指定鍵的元素。

TryGetProperty(String, ISfcProperty)

取得與指定金鑰相關的屬性。 此類別無法獲得繼承。

TryGetPropertyValue(String, Object)

取得一個表示要取得屬性的值。

TryGetPropertyValue<T>(String, T)

透過項目清單取得一個表示要取得屬性的值。

TryGetValue(String, Object)

取得與指定金鑰相關聯的值。

事件

名稱 Description
PropertyChanged

發生在更改應用程式設定屬性的值之後。

PropertyMetadataChanged

發生在元資料屬性的值被更改之後。

明確介面實作

名稱 Description
IEnumerable.GetEnumerator()

回傳一個列舉器,會遍歷目前的集合物件。

適用於