IdentityReferenceCollection.Contains(IdentityReference) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表示集合 IdentityReferenceCollection 是否包含指定的 IdentityReference 物件。
public:
virtual bool Contains(System::Security::Principal::IdentityReference ^ identity);
public bool Contains(System.Security.Principal.IdentityReference identity);
abstract member Contains : System.Security.Principal.IdentityReference -> bool
override this.Contains : System.Security.Principal.IdentityReference -> bool
Public Function Contains (identity As IdentityReference) As Boolean
參數
- identity
- IdentityReference
IdentityReference要檢查的對象。
傳回
true 如果集合包含指定的物件。
實作
例外狀況
identity 是 null。