Share via


IAsymmetricKeyFactory.CreateAsymmetricKey Method

Creates an IMutableAsymmetricKey object that belongs to the specified IDatabase 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 CreateAsymmetricKey ( _
    database As IDatabase, _
    name As String _
) As IMutableAsymmetricKey
'Usage
Dim instance As IAsymmetricKeyFactory
Dim database As IDatabase
Dim name As String
Dim returnValue As IMutableAsymmetricKey

returnValue = instance.CreateAsymmetricKey(database, _
    name)
IMutableAsymmetricKey CreateAsymmetricKey(
    IDatabase database,
    string name
)
IMutableAsymmetricKey^ CreateAsymmetricKey(
    IDatabase^ database, 
    String^ name
)
abstract CreateAsymmetricKey : 
        database:IDatabase * 
        name:string -> IMutableAsymmetricKey 
function CreateAsymmetricKey(
    database : IDatabase, 
    name : String
) : IMutableAsymmetricKey

Parameters

Return Value

Type: Microsoft.SqlServer.Management.SqlParser.Metadata.IMutableAsymmetricKey
An IMutableAsymmetricKey object that belongs to the specified IDatabase object and has the specified name.