NameValueCollection.HasKeys 方法

定義

取得值,表示 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

傳回

Boolean

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

備註

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

適用於