Freigeben über


Credential.Create Method (String, SecureString)

Creates a credential on the instance of Microsoft SQL Server as defined by the Credential object.

Namespace: Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Syntax

'Declaration
Public Sub Create ( _
    identity As String, _
    secret As SecureString _
)
public void Create (
    string identity,
    SecureString secret
)
public:
void Create (
    String^ identity, 
    SecureString^ secret
)
public void Create (
    String identity, 
    SecureString secret
)
public function Create (
    identity : String, 
    secret : SecureString
)

Parameter

  • identity
    A String value that specifies the name of the credential.
  • secret
    A SecureString value that specifies the password for the credential.

Hinweise

Der Namespace, die Klasse oder das Element wird nur in der Version 2.0 von Microsoft .NET Framework unterstützt.

Beispiel

How to: Use an SMO Method with a Parameter in Visual Basic .NET

Threadsicherheit

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Plattformen

Entwicklungsplattformen

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Zielplattforme

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Siehe auch

Verweis

Credential Class
Credential Members
Microsoft.SqlServer.Management.Smo Namespace

Andere Ressourcen

CREATE CREDENTIAL (Transact-SQL)
Anmeldeinformationen