We recommend using Visual Studio 2017

ScriptingOptions.IncludeDatabaseRoleMemberships Property

Gets or sets the IncludeDatabaseRoleMemberships property value.

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

public bool IncludeDatabaseRoleMemberships { get; set; }

Property Value

Type: System.Boolean
Boolean

Community Additions

ADD
Show: