ServerRole 建構函式 (Server, String)
Initializes a new instance of the ServerRole class.
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public Sub New ( _
server As Server, _
name As String _
)
'用途
Dim server As Server
Dim name As String
Dim instance As New ServerRole(server, _
name)
public ServerRole(
Server server,
string name
)
public:
ServerRole(
Server^ server,
String^ name
)
new :
server:Server *
name:string -> ServerRole
public function ServerRole(
server : Server,
name : String
)
參數
- server
型別:Microsoft.SqlServer.Management.Smo.Server
The Server which serves as the parent to the ServerRole.
- name
型別:System.String
A String containing the name of the ServerRole