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(SfcPropertyFlags.Standalone)> _
Public Property UserAccess As DatabaseUserAccess 
    Get 
    Set
'Usage
Dim instance As DatabaseOptions 
Dim value As DatabaseUserAccess 

value = instance.UserAccess

instance.UserAccess = value
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public DatabaseUserAccess UserAccess { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property DatabaseUserAccess UserAccess {
    DatabaseUserAccess get ();
    void set (DatabaseUserAccess value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
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.

Examples

Setting Properties

See Also

Reference

DatabaseOptions Class

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Database Options