Condividi tramite


Server.SetDefaultInitFields Method

Definition

Overloads

SetDefaultInitFields(Type, Boolean)

Set the default fields of the given object type. This function will be deprecated. Please use the overload function.

SetDefaultInitFields(Boolean)

Sets a value indicating whether objects in collections should be initialized with all properties and clears any prior settings from other overrides of this method. Specific properties to fetch for a given type can be chosen for initialization by using another override of this method.

SetDefaultInitFields(Type, DatabaseEngineEdition, String[])

Set the default fields of the given object type

SetDefaultInitFields(Type, StringCollection)

Set the default for the fields of the given object type. This function will be deprecated. Please use the overload function.

SetDefaultInitFields(Type, Boolean, DatabaseEngineEdition)

Set the default fields of the given object type

SetDefaultInitFields(Type, StringCollection, DatabaseEngineEdition)

Set the default fields of the given object type

SetDefaultInitFields(Type, String[])

Set the default fields of the given object type. This function will be deprecated. Please use the overload function.

SetDefaultInitFields(Type, Boolean)

Set the default fields of the given object type. This function will be deprecated. Please use the overload function.

public void SetDefaultInitFields (Type typeObject, bool allFields);
member this.SetDefaultInitFields : Type * bool -> unit
Public Sub SetDefaultInitFields (typeObject As Type, allFields As Boolean)

Parameters

typeObject
Type

Type of the object

allFields
Boolean

Should set all fields or not

Applies to

SetDefaultInitFields(Boolean)

Sets a value indicating whether objects in collections should be initialized with all properties and clears any prior settings from other overrides of this method. Specific properties to fetch for a given type can be chosen for initialization by using another override of this method.

public void SetDefaultInitFields (bool allFields);
member this.SetDefaultInitFields : bool -> unit
Public Sub SetDefaultInitFields (allFields As Boolean)

Parameters

allFields
Boolean

When true, collection initialization will fetch all properties of the objects in the collection. When false, only a minimal subset of properties will be fetched.

Applies to

SetDefaultInitFields(Type, DatabaseEngineEdition, String[])

Set the default fields of the given object type

public void SetDefaultInitFields (Type typeObject, Microsoft.SqlServer.Management.Common.DatabaseEngineEdition databaseEngineEdition, params string[] fields);
member this.SetDefaultInitFields : Type * Microsoft.SqlServer.Management.Common.DatabaseEngineEdition * string[] -> unit
Public Sub SetDefaultInitFields (typeObject As Type, databaseEngineEdition As DatabaseEngineEdition, ParamArray fields As String())

Parameters

typeObject
Type

Type of the object

databaseEngineEdition
DatabaseEngineEdition

Database edition of the object. This is required a Database and it children can have different properties based on the databaseEngineEdition

fields
String[]

List of the fields

Applies to

SetDefaultInitFields(Type, StringCollection)

Set the default for the fields of the given object type. This function will be deprecated. Please use the overload function.

public void SetDefaultInitFields (Type typeObject, System.Collections.Specialized.StringCollection fields);
member this.SetDefaultInitFields : Type * System.Collections.Specialized.StringCollection -> unit
Public Sub SetDefaultInitFields (typeObject As Type, fields As StringCollection)

Parameters

typeObject
Type

Type of the object

fields
StringCollection

List of the fields

Applies to

SetDefaultInitFields(Type, Boolean, DatabaseEngineEdition)

Set the default fields of the given object type

public void SetDefaultInitFields (Type typeObject, bool allFields, Microsoft.SqlServer.Management.Common.DatabaseEngineEdition databaseEngineEdition);
member this.SetDefaultInitFields : Type * bool * Microsoft.SqlServer.Management.Common.DatabaseEngineEdition -> unit
Public Sub SetDefaultInitFields (typeObject As Type, allFields As Boolean, databaseEngineEdition As DatabaseEngineEdition)

Parameters

typeObject
Type

Type of the object

allFields
Boolean

Should set all fields or not

databaseEngineEdition
DatabaseEngineEdition

Database edition of the object. This is required a Database and it children can have different properties based on the databaseEngineEdition

Applies to

SetDefaultInitFields(Type, StringCollection, DatabaseEngineEdition)

Set the default fields of the given object type

public void SetDefaultInitFields (Type typeObject, System.Collections.Specialized.StringCollection fields, Microsoft.SqlServer.Management.Common.DatabaseEngineEdition databaseEngineEdition);
member this.SetDefaultInitFields : Type * System.Collections.Specialized.StringCollection * Microsoft.SqlServer.Management.Common.DatabaseEngineEdition -> unit
Public Sub SetDefaultInitFields (typeObject As Type, fields As StringCollection, databaseEngineEdition As DatabaseEngineEdition)

Parameters

typeObject
Type

Type of the object

fields
StringCollection

List of the fields

databaseEngineEdition
DatabaseEngineEdition

Database edition of the object. This is required as a Database and it children can have different properties based on the databaseEngineEdition

Applies to

SetDefaultInitFields(Type, String[])

Set the default fields of the given object type. This function will be deprecated. Please use the overload function.

public void SetDefaultInitFields (Type typeObject, params string[] fields);
member this.SetDefaultInitFields : Type * string[] -> unit
Public Sub SetDefaultInitFields (typeObject As Type, ParamArray fields As String())

Parameters

typeObject
Type

Type of the object

fields
String[]

List of the fields

Applies to