Partager via


Propriété ScriptingOptions.IncludeDatabaseRoleMemberships

Gets or sets a value that indicates whether the database role memberships are included.

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
Public Property IncludeDatabaseRoleMemberships As Boolean 
    Get 
    Set
'Utilisation
Dim instance As ScriptingOptions 
Dim value As Boolean 

value = instance.IncludeDatabaseRoleMemberships

instance.IncludeDatabaseRoleMemberships = value
public bool IncludeDatabaseRoleMemberships { get; set; }
public:
property bool IncludeDatabaseRoleMemberships {
    bool get ();
    void set (bool value);
}
member IncludeDatabaseRoleMemberships : bool with get, set
function get IncludeDatabaseRoleMemberships () : boolean 
function set IncludeDatabaseRoleMemberships (value : boolean)

Valeur de propriété

Type : System.Boolean
True if the database role memberships are included; otherwise, false.

Exemples

Visual Basic

Dim scOps As New ScriptingOptions()
scOps.IncludeDatabaseRoleMemberships = true

PowerShell

$scOps = New-Object Microsoft.SqlServer.Management.Smo.ScriptingOptions
$scOps.IncludeDatabaseRoleMemberships = $TRUE

Voir aussi

Référence

ScriptingOptions Classe

Espace de noms Microsoft.SqlServer.Management.Smo

Autres ressources

Création de scripts