Delen via


ScriptOption.PrimaryObject Property

Gets an object value that specifies whether the creation of the referenced object is included in the generated script.

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

Syntax

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

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

Property Value

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

Examples

Scripting