SqlConnectionStringBuilder.ShouldSerialize(String) Method

Definition

指示此 SqlConnectionStringBuilder 实例中是否存在指定的键。Indicates whether the specified key exists in this SqlConnectionStringBuilder instance.

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

Parameters

keyword
String

要在 SqlConnectionStringBuilder 中定位的键。The key to locate in the SqlConnectionStringBuilder.

Returns

Boolean

如果 SqlConnectionStringBuilder 包含具有指定键的项,则为 true;否则为 falsetrue if the SqlConnectionStringBuilder contains an entry with the specified key; otherwise, false.

Remarks

此方法的行为与 ContainsKey 方法完全相同。This method behaves identically to the ContainsKey method.

Applies to

See also