Share via


DatabaseOptions.UserAccess Property

Gets or sets the database user access.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
<SfcPropertyAttribute> _
Public Property UserAccess As DatabaseUserAccess
    Get
    Set
'Usage
Dim instance As DatabaseOptions
Dim value As DatabaseUserAccess

value = instance.UserAccess

instance.UserAccess = value
[SfcPropertyAttribute]
public DatabaseUserAccess UserAccess { get; set; }
[SfcPropertyAttribute]
public:
property DatabaseUserAccess UserAccess {
    DatabaseUserAccess get ();
    void set (DatabaseUserAccess value);
}
[<SfcPropertyAttribute>]
member UserAccess : DatabaseUserAccess with get, set
function get UserAccess () : DatabaseUserAccess
function set UserAccess (value : DatabaseUserAccess)

Property Value

Type: Microsoft.SqlServer.Management.Smo.DatabaseUserAccess
A DatabaseUserAccess object value that specifies the database user access.