Server.SetDefaultInitFields Method

Specifies whether all the properties are fetched when objects are instantiated.

Remarks

Updated text:

The SetDefaultInitFields method has several overloads that give you option to set the default initialization fields for a specified type, and for specified properties of the type.

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

Overload List

Name Description
Server.SetDefaultInitFields (Boolean)
Specifies all the properties are fetched when objects are instantiated.
Server.SetDefaultInitFields (Type, Boolean)
Specifies all the properties are fetched when objects of the specified type are instantiated.
Server.SetDefaultInitFields (Type, String[])
Specifies the properties that are fetched when objects of the specified type are instantiated.
Server.SetDefaultInitFields (Type, StringCollection)
Specifies the properties that are fetched when objects of the specified type are instantiated.

See Also

Reference

Server Class
Server Members
Microsoft.SqlServer.Management.Smo Namespace

Other Resources

How to: Set Default Initialization Fields in Visual Basic .NET
Setting Properties
Calling Methods
Managing Servers

Change History

Release

History

New content:
  • Added code sample to the Example section.

  • Added to the description in the Remarks section.