Share via


SimpleMembershipProvider.HasLocalAccount(Int32) 方法

定義

指出使用者是否具有本機帳戶。

public override bool HasLocalAccount (int userId);
override this.HasLocalAccount : int -> bool
Public Overrides Function HasLocalAccount (userId As Integer) As Boolean

參數

userId
Int32

使用者識別碼。

傳回

如果使用者具有本機帳戶,則為 true;否則為 false。

適用於