NameValueCollection.HasKeys NameValueCollection.HasKeys NameValueCollection.HasKeys NameValueCollection.HasKeys Method

定義

取得值,指出 NameValueCollection 是否包含非 null 的索引鍵。Gets a value indicating whether the NameValueCollection contains keys that are not null.

public:
 bool HasKeys();
public bool HasKeys ();
member this.HasKeys : unit -> bool
Public Function HasKeys () As Boolean

傳回

如果 NameValueCollection 包含非 true 的索引鍵,則為 null,否則為 falsetrue if the NameValueCollection contains keys that are not null; otherwise, false.

備註

這個方法是 o (1) 作業。This method is an O(1) operation.

適用於