Credential.Create-Methode (String, SecureString)
Creates a credential on the instance of 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 _
)
'Usage
Dim instance As Credential
Dim identity As String
Dim secret As SecureString
instance.Create(identity, secret)
public void Create(
string identity,
SecureString secret
)
public:
void Create(
String^ identity,
SecureString^ secret
)
member Create :
identity:string *
secret:SecureString -> unit
public function Create(
identity : String,
secret : SecureString
)
Parameter
- identity
Typ: System.String
A String value that specifies the name of the credential.
- secret
Typ: System.Security.SecureString
A SecureString value that specifies the password for the credential.
Beispiele
Siehe auch
Verweis
Microsoft.SqlServer.Management.Smo-Namespace