Credential Constructor (Server, String)
Initializes a new instance of the Credential class on the specified instance of SQL Server and with the specified name.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Syntax
'Declaration
Public Sub New ( _
server As Server, _
name As String _
)
public Credential (
Server server,
string name
)
public:
Credential (
Server^ server,
String^ name
)
public Credential (
Server server,
String name
)
public function Credential (
server : Server,
name : String
)
Parameters
- server
A Server object value that specifies instance of SQL Server on which the credential is created.
- name
A String value that specifies the name of the credential.
Remarks
This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.
Example
How to: Construct an Object in Visual Basic .NET
Platforms
Development Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.
Target Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.
See Also
Reference
Credential Class
Credential Members
Microsoft.SqlServer.Management.Smo Namespace