次の方法で共有


Login.Create メソッド (SecureString, LoginCreateOptions)

SQL Server のインスタンスで、ログイン オブジェクトによる定義に基づいてログイン アカウントを作成します。

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

構文

'宣言
Public Sub Create ( _
    password As SecureString, _
    options As LoginCreateOptions _
)
'使用
Dim instance As Login 
Dim password As SecureString 
Dim options As LoginCreateOptions

instance.Create(password, options)
public void Create(
    SecureString password,
    LoginCreateOptions options
)
public:
void Create(
    SecureString^ password, 
    LoginCreateOptions options
)
member Create : 
        password:SecureString * 
        options:LoginCreateOptions -> unit
public function Create(
    password : SecureString, 
    options : LoginCreateOptions
)

パラメーター

説明

[FlagsAttribute] 列挙である LoginCreateOptions には、ログオンの作成時にパスワード オプションを指定するために使用する値が含まれます。

説明

なし = 0

オプションなし。

IsHashed = 1

パスワードが既にハッシュ処理済みでログインに再適用できるかどうかを示します。

MustChange = 2

ユーザーが次のログイン時にパスワードを変更する必要があるかどうかを示します。

関連項目

参照

Login クラス

Create オーバーロード

Microsoft.SqlServer.Management.Smo 名前空間

その他の技術情報

SQL Server 2008 Security Changes

[ログインのプロパティ] ([全般] ページ)