ScriptOption.DriPrimaryKey Property

Gets an object value that specifies whether dependency relationships defined in primary keys with enforced declarative referential integrity are included in the script.

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

Syntax

'Declaration
Public Shared ReadOnly Property DriPrimaryKey As ScriptOption
    Get
'Usage
Dim value As ScriptOption

value = ScriptOption.DriPrimaryKey
public static ScriptOption DriPrimaryKey { get; }
public:
static property ScriptOption^ DriPrimaryKey {
    ScriptOption^ get ();
}
static member DriPrimaryKey : ScriptOption
static function get DriPrimaryKey () : ScriptOption

Property Value

Type: Microsoft.SqlServer.Management.Smo.ScriptOption
A ScriptOption object that represents the DriPrimaryKeyin the scripting options.

Examples

Scripting