Share via


IUserFactory.CreateAsymmetricKeyUser Method

Creates an IMutableUser object that belongs to the specified IDatabase object and has the specified name. The UserType property of the created object is set to AsymmetricKey.

Namespace:  Microsoft.SqlServer.Management.SqlParser.MetadataProvider
Assembly:  Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)

Syntax

'Declaration
Function CreateAsymmetricKeyUser ( _
    database As IDatabase, _
    name As String _
) As IMutableUser
'Usage
Dim instance As IUserFactory 
Dim database As IDatabase 
Dim name As String 
Dim returnValue As IMutableUser 

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

Parameters

Return Value

Type: Microsoft.SqlServer.Management.SqlParser.Metadata.IMutableUser
An IMutableUser object.

See Also

Reference

IUserFactory Interface

Microsoft.SqlServer.Management.SqlParser.MetadataProvider Namespace