IUserFactory Interface

 

Defines methods that can be used to create IUser objects.

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

public interface IUserFactory

NameDescription
System_CAPS_pubmethodCreateAsymmetricKeyUser(IDatabase, String)

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.

System_CAPS_pubmethodCreateCertificateUser(IDatabase, String)

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 Certificate.

System_CAPS_pubmethodCreateNoLoginUser(IDatabase, String)

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 NoLogin.

System_CAPS_pubmethodCreateSqlLoginUser(IDatabase, String)

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 SqlLogin.

Return to top
Show: