ServiceModelExtensionCollectionElement<TServiceModelExtensionElement>.ContainsKey Método

Definição

Determina se essa coleção contém um elemento da chave especificada.Determines whether this collection contains an element of the specified key.

Sobrecargas

ContainsKey(String)

Determina se essa coleção contém um elemento do nome especificado.Determines whether this collection contains an element of the specified name.

ContainsKey(Type)

Determina se essa coleção contém um elemento do tipo especificado.Determines whether this collection contains an element of the specified type.

ContainsKey(String)

Determina se essa coleção contém um elemento do nome especificado.Determines whether this collection contains an element of the specified name.

public:
 bool ContainsKey(System::String ^ elementName);
public bool ContainsKey (string elementName);
member this.ContainsKey : string -> bool
Public Function ContainsKey (elementName As String) As Boolean

Parâmetros

elementName
String

O nome do elemento a ser pesquisado.The name of the element to search for.

Retornos

Boolean

true se a coleção contiver um elemento com o nome especificado; caso contrário, false.true if the collection contains an element of the specified name; otherwise, false.

Exceções

elementName é null.elementName is null.

Aplica-se a

ContainsKey(Type)

Determina se essa coleção contém um elemento do tipo especificado.Determines whether this collection contains an element of the specified type.

public:
 bool ContainsKey(Type ^ elementType);
public bool ContainsKey (Type elementType);
member this.ContainsKey : Type -> bool
Public Function ContainsKey (elementType As Type) As Boolean

Parâmetros

elementType
Type

O tipo do elemento a ser pesquisado.The type of the element to search for.

Retornos

Boolean

true se a coleção contiver um elemento com o tipo especificado; caso contrário, false.true if the collection contains an element of the specified type; otherwise, false.

Exceções

elementName é null.elementName is null.

Aplica-se a