ICredentialFactory.CreateCredential Method
Creates an IMutableCredential object that belongs to the specified IServer object and has the specified name.
Namespace: Microsoft.SqlServer.Management.SqlParser.MetadataProvider
Assembly: Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)
Syntax
'Declaration
Function CreateCredential ( _
server As IServer, _
name As String _
) As IMutableCredential
'Usage
Dim instance As ICredentialFactory
Dim server As IServer
Dim name As String
Dim returnValue As IMutableCredential
returnValue = instance.CreateCredential(server, _
name)
IMutableCredential CreateCredential(
IServer server,
string name
)
IMutableCredential^ CreateCredential(
IServer^ server,
String^ name
)
abstract CreateCredential :
server:IServer *
name:string -> IMutableCredential
function CreateCredential(
server : IServer,
name : String
) : IMutableCredential
Parameters
- server
Type: Microsoft.SqlServer.Management.SqlParser.Metadata.IServer
The IServer object that is the parent of the credential.
- name
Type: System.String
The name of the credential.
Return Value
Type: Microsoft.SqlServer.Management.SqlParser.Metadata.IMutableCredential
An IMutableCredential object that belongs to the specified IServer object and has the specified name.
See Also
Reference
Microsoft.SqlServer.Management.SqlParser.MetadataProvider Namespace