Share via


DatabaseRole.IsFixedRole Property

Gets the Boolean property value that specifies whether the database role is a fixed role or a user-defined role.

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

Syntax

'Declaration
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase Or SfcPropertyFlags.Design)> _
Public ReadOnly Property IsFixedRole As Boolean 
    Get
'Usage
Dim instance As DatabaseRole 
Dim value As Boolean 

value = instance.IsFixedRole
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)]
public bool IsFixedRole { get; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase|SfcPropertyFlags::Design)]
public:
property bool IsFixedRole {
    bool get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)>]
member IsFixedRole : bool
function get IsFixedRole () : boolean

Property Value

Type: System.Boolean
A Boolean value that specifies whether the database role is fixed or user defined.If True, the database role is a fixed role.If False (default), the database role is a user-defined role.

Examples

Managing Users, Roles, and Logins

See Also

Reference

DatabaseRole Class

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Database-Level Roles

CREATE ROLE (Transact-SQL)