PropertyDictionary.Contains 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
确定字典是否包含特定的密钥。
重载
| 名称 | 说明 |
|---|---|
| Contains(ISfcProperty) |
确定一个表示要包含的特定对象的值。 |
| Contains(KeyValuePair<String,Object>) |
为PropertyDictionary提供对象。 |
| Contains(String) |
确定词典是否包含特定的属性名称。 |
| Contains<T>(String) |
表示词典是否包含特定名称的值。 |
Contains(ISfcProperty)
确定一个表示要包含的特定对象的值。
public:
virtual bool Contains(Microsoft::SqlServer::Management::Sdk::Sfc::ISfcProperty ^ property);
public bool Contains(Microsoft.SqlServer.Management.Sdk.Sfc.ISfcProperty property);
abstract member Contains : Microsoft.SqlServer.Management.Sdk.Sfc.ISfcProperty -> bool
override this.Contains : Microsoft.SqlServer.Management.Sdk.Sfc.ISfcProperty -> bool
Public Function Contains (property As ISfcProperty) As Boolean
参数
- property
- ISfcProperty
true确定该财产能包含的价值;否则,。 false
返回
true如果在PropertyDictionary中发现了表示指定对象的值;否则,。 false
实现
适用于
Contains(KeyValuePair<String,Object>)
为PropertyDictionary提供对象。
public:
virtual bool Contains(System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^> value);
public bool Contains(System.Collections.Generic.KeyValuePair<string,object> value);
abstract member Contains : System.Collections.Generic.KeyValuePair<string, obj> -> bool
override this.Contains : System.Collections.Generic.KeyValuePair<string, obj> -> bool
Public Function Contains (value As KeyValuePair(Of String, Object)) As Boolean
参数
- value
- KeyValuePair<String,Object>
字典的字符串值。
返回
true如果物体位于该性质内;否则,。 false
实现
适用于
Contains(String)
确定词典是否包含特定的属性名称。
public:
virtual bool Contains(System::String ^ propertyName);
public bool Contains(string propertyName);
abstract member Contains : string -> bool
override this.Contains : string -> bool
Public Function Contains (propertyName As String) As Boolean
参数
- propertyName
- String
一个表示控制属性名称的字符串。
返回
true如果对象包含该项;否则,。 false
实现
适用于
Contains<T>(String)
表示词典是否包含特定名称的值。
public:
generic <typename T>
virtual bool Contains(System::String ^ name);
public bool Contains<T>(string name);
abstract member Contains : string -> bool
override this.Contains : string -> bool
Public Function Contains(Of T) (name As String) As Boolean
类型参数
- T
一个通用的物品。
参数
- name
- String
属性的名称。
返回
true如果词典包含特定的键;否则,。 false