Login.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.
請參閱
參考
Microsoft.SqlServer.Management.Smo 命名空間