语言

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
派生
属性
实现

构造函数

名称 说明
PropertyDictionary()

初始化一个带有默认属性值的新 PropertyDictionary 类实例。

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

初始化具有指定属性的 PropertyDictionary 类的新实例。

PropertyDictionary(ISfcPropertyProvider)

初始化该类的新实例 PropertyDictionary ,使用指定的提供者。

属性

名称 说明
Count

获取财产词典中的物品计数。

IsReadOnly

得到一个值,表示该属性是否可以被修改。

Item[String]

获取或设置指定键处的项。

Keys

拿到房产钥匙。

Values

获取包含字典中值的 ICollection 对象。

方法

名称 说明
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)

检索与指定键关联的值。

活动

名称 说明
PropertyChanged

发生在应用设置属性的值被更改之后。

PropertyMetadataChanged

发生在元数据属性的值被更改之后。

显式接口实现

名称 说明
IEnumerable.GetEnumerator()

返回一个枚举器,遍历当前集合对象。

适用于