Właściwość ScriptingOptions.IncludeDatabaseRoleMemberships
Pobiera lub ustawia wartość właściwość IncludeDatabaseRoleMemberships.
Przestrzeń nazw: Microsoft.SqlServer.Management.Smo
Zestaw: Microsoft.SqlServer.Smo (w Microsoft.SqlServer.Smo.dll)
Składnia
'Deklaracja
Public Property IncludeDatabaseRoleMemberships As Boolean
Get
Set
'Użycie
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)
Wartość właściwości
Typ: System.Boolean
Boolean
Przykłady
Visual Basic
Dim scOps As New ScriptingOptions()
scOps.IncludeDatabaseRoleMemberships = true
PowerShell
$scOps = New-Object Microsoft.SqlServer.Management.Smo.ScriptingOptions
$scOps.IncludeDatabaseRoleMemberships = $TRUE
Zobacz także