Share via


SecurityPolicy Constructors

Definition

Overloads

SecurityPolicy()
SecurityPolicy(Database, String)
SecurityPolicy(Database, String, String)
SecurityPolicy(Database, String, String, Boolean, Boolean)

Parameterized constructor - populates properties from parameter values.

SecurityPolicy()

public SecurityPolicy ();
Public Sub New ()

Applies to

SecurityPolicy(Database, String)

public SecurityPolicy (Microsoft.SqlServer.Management.Smo.Database database, string name);
new Microsoft.SqlServer.Management.Smo.SecurityPolicy : Microsoft.SqlServer.Management.Smo.Database * string -> Microsoft.SqlServer.Management.Smo.SecurityPolicy
Public Sub New (database As Database, name As String)

Parameters

database
Database
name
String

Applies to

SecurityPolicy(Database, String, String)

public SecurityPolicy (Microsoft.SqlServer.Management.Smo.Database database, string name, string schema);
new Microsoft.SqlServer.Management.Smo.SecurityPolicy : Microsoft.SqlServer.Management.Smo.Database * string * string -> Microsoft.SqlServer.Management.Smo.SecurityPolicy
Public Sub New (database As Database, name As String, schema As String)

Parameters

database
Database
name
String
schema
String

Applies to

SecurityPolicy(Database, String, String, Boolean, Boolean)

Parameterized constructor - populates properties from parameter values.

public SecurityPolicy (Microsoft.SqlServer.Management.Smo.Database parent, string name, string schema, bool notForReplication, bool isEnabled);
new Microsoft.SqlServer.Management.Smo.SecurityPolicy : Microsoft.SqlServer.Management.Smo.Database * string * string * bool * bool -> Microsoft.SqlServer.Management.Smo.SecurityPolicy
Public Sub New (parent As Database, name As String, schema As String, notForReplication As Boolean, isEnabled As Boolean)

Parameters

parent
Database

The parent Database

name
String

The name of the security policy

schema
String

The schema of the security policy

notForReplication
Boolean

Whether or not the security policy is marked for replication

isEnabled
Boolean

Whether the security policy is enabled or disabled

Applies to