次の方法で共有


Login.MustChangePassword プロパティ

ユーザーが次に SQL Server のインスタンスにログオンするときに、ログイン アカウントのパスワードを変更する必要があるかどうかを示す Boolean プロパティ値を取得します。

名前空間:  Microsoft.SqlServer.Management.Smo
アセンブリ:  Microsoft.SqlServer.Smo (Microsoft.SqlServer.Smo.dll)

構文

'宣言
<SfcPropertyAttribute(SfcPropertyFlags.Standalone, "false")> _
Public ReadOnly Property MustChangePassword As Boolean 
    Get
'使用
Dim instance As Login 
Dim value As Boolean 

value = instance.MustChangePassword
[SfcPropertyAttribute(SfcPropertyFlags.Standalone, "false")]
public bool MustChangePassword { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone, L"false")]
public:
virtual property bool MustChangePassword {
    bool get () sealed;
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone, "false")>]
abstract MustChangePassword : bool
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone, "false")>]
override MustChangePassword : bool
final function get MustChangePassword () : boolean

プロパティ値

型: System.Boolean
ユーザーが次に SQL Server のインスタンスにログオンするときに、パスワードを変更する必要があるかどうかを示す Boolean 値です。 True の場合、ログイン アカウントのパスワードを変更する必要があります。 False の場合、ログイン アカウントのパスワードを変更する必要はありません。

実装

ILoginOptions.MustChangePassword

使用例

ユーザー、ロール、およびログインの管理

関連項目

参照

Login クラス

Microsoft.SqlServer.Management.Smo 名前空間

その他の技術情報

プリンシパル (データベース エンジン)

CREATE LOGIN (Transact-SQL)