IDatabaseOptions.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
<DisplayNameKeyAttribute("Database_UserAccessName")> _
<DisplayDescriptionKeyAttribute("Database_UserAccessDesc")> _
Property UserAccess As DatabaseUserAccess
Get
Set
'Usage
Dim instance As IDatabaseOptions
Dim value As DatabaseUserAccess
value = instance.UserAccess
instance.UserAccess = value
[DisplayNameKeyAttribute("Database_UserAccessName")]
[DisplayDescriptionKeyAttribute("Database_UserAccessDesc")]
DatabaseUserAccess UserAccess { get; set; }
[DisplayNameKeyAttribute(L"Database_UserAccessName")]
[DisplayDescriptionKeyAttribute(L"Database_UserAccessDesc")]
property DatabaseUserAccess UserAccess {
DatabaseUserAccess get ();
void set (DatabaseUserAccess value);
}
[<DisplayNameKeyAttribute("Database_UserAccessName")>]
[<DisplayDescriptionKeyAttribute("Database_UserAccessDesc")>]
abstract 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
How to Get and Set a Property in Visual Basic .NET
See Also
Reference
Microsoft.SqlServer.Management.Smo Namespace