다음을 통해 공유


ScriptingOptions.IncludeDatabaseRoleMemberships 속성

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

네임스페이스:  Microsoft.SqlServer.Management.Smo
어셈블리:  Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)

구문

‘선언
Public Property IncludeDatabaseRoleMemberships As Boolean 
    Get 
    Set
‘사용 방법
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)

속성 값

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

Visual Basic

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

PowerShell

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

참고 항목

참조

ScriptingOptions 클래스

Microsoft.SqlServer.Management.Smo 네임스페이스

관련 자료

스크립팅