EntityConnectionStringBuilder.Remove(String) Método

Definição

Remove a entrada com a chave especificada da instância de EntityConnectionStringBuilder.Removes the entry with the specified key from the EntityConnectionStringBuilder instance.

public:
 override bool Remove(System::String ^ keyword);
public override bool Remove (string keyword);
override this.Remove : string -> bool
Public Overrides Function Remove (keyword As String) As Boolean

Parâmetros

keyword
String

A chave do par palavra-chave/valor a ser removida da cadeia de conexão neste EntityConnectionStringBuilder.The key of the keyword/value pair to be removed from the connection string in this EntityConnectionStringBuilder.

Retornos

Boolean

true se a chave existia na cadeia de conexão e foi removida; false se a chave não existia.true if the key existed in the connection string and was removed; false if the key did not exist.

Exceções

keyword é nulo (Nothing no Visual Basic)keyword is null (Nothing in Visual Basic)

Comentários

Como o Remove método retorna um valor que indica seu sucesso, não é necessário procurar uma chave antes de tentar remover o par de palavras-chave/valor da EntityConnectionStringBuilder instância.Because the Remove method returns a value that indicates its success, it is not required to look for a key before trying to remove the keyword/value pair from the EntityConnectionStringBuilder instance.

Aplica-se a