SecurityIdentifier.IsAccountSid 方法

定義

傳回值,指出這個 SecurityIdentifier 物件所表示的安全識別項 (SID) 是否為有效的 Windows 帳戶 SID。Returns a value that indicates whether the security identifier (SID) represented by this SecurityIdentifier object is a valid Windows account SID.

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

傳回

如果這個 true 物件所表示的 SID 是有效的 Windows 帳戶 SID 則為 SecurityIdentifier,否則為 falsetrue if the SID represented by this SecurityIdentifier object is a valid Windows account SID; otherwise, false.

適用於