Share via


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

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

ICredentialFactory Interface

Microsoft.SqlServer.Management.SqlParser.MetadataProvider Namespace