Partilhar via


Propriedade do RDL IncludeDatabaseRoleMemberships

Gets or sets the IncludeDatabaseRoleMemberships property value.

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

Sintaxe

'Declaração
Public Property IncludeDatabaseRoleMemberships As Boolean
    Get
    Set
'Uso
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)

Valor da propriedade

Tipo: System. . :: . .Boolean
Boolean

Exemplos

Visual Basic

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

PowerShell

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