AddCredential 方法
Adds a login credential.
命名空间: Microsoft.SqlServer.Management.Smo
程序集: Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)
语法
声明
Public Sub AddCredential ( _
credentialName As String _
)
用法
Dim instance As Login
Dim credentialName As String
instance.AddCredential(credentialName)
public void AddCredential(
string credentialName
)
public:
void AddCredential(
String^ credentialName
)
member AddCredential :
credentialName:string -> unit
public function AddCredential(
credentialName : String
)
参数
- credentialName
类型:System. . :: . .String
The name of the credential to be mapped to the server login.