Credential.Create 方法 (String, SecureString)
Creates a credential on the instance of SQL Server as defined by the Credential object.
命名空间: Microsoft.SqlServer.Management.Smo
程序集: Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)
语法
声明
Public Sub Create ( _
identity As String, _
secret As SecureString _
)
用法
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
)
参数
- identity
类型:System.String
A String value that specifies the name of the credential.
- secret
类型:System.Security.SecureString
A SecureString value that specifies the password for the credential.
示例
请参阅
参考
Microsoft.SqlServer.Management.Smo 命名空间