ServerRole Constructor (Server, String)
Initializes a new instance of the ServerRole class.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Bildirim
Public Sub New ( _
server As Server, _
name As String _
)
'Kullanım
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
)
Parameters
- server
Type: Microsoft.SqlServer.Management.Smo.Server
The Server which serves as the parent to the ServerRole.
- name
Type: System.String
A String containing the name of the ServerRole