次の方法で共有


ApplicationRole コンストラクター (Database, String)

ApplicationRole クラスの新しいインスタンスを初期化します。

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

構文

'宣言
Public Sub New ( _
    database As Database, _
    name As String _
)
'使用
Dim database As Database 
Dim name As String 

Dim instance As New ApplicationRole(database, _
    name)
public ApplicationRole(
    Database database,
    string name
)
public:
ApplicationRole(
    Database^ database, 
    String^ name
)
new : 
        database:Database * 
        name:string -> ApplicationRole
public function ApplicationRole(
    database : Database, 
    name : String
)

パラメーター

  • name
    型: System.String
    アプリケーション ロールの名前を示す String 値です。

関連項目

参照

ApplicationRole クラス

ApplicationRole オーバーロード

Microsoft.SqlServer.Management.Smo 名前空間

その他の技術情報

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

アプリケーション ロール

CREATE APPLICATION ROLE (Transact-SQL)