Sdílet prostřednictvím


IMajorObject Interface

Definition

Major objects of a Tabular solution, such as Server, Database, Role, and Trace. Major objects are an artifact of the legacy AMO client library, where objects are classified as Major or Minor.

public interface IMajorObject
type IMajorObject = interface
Public Interface IMajorObject
Derived

Properties

BaseType

Gets the object type from which the current object is derived.

IsLoaded

Gets a Boolean value indicating whether the object is currently loaded.

ObjectReference

Gets the object reference, or object path, of the current object thus uniquely identifying the object within the object tree.

ParentDatabase

Gets the parent database referred to by IMajorObject.

ParentServer

Gets the Server object that is the parent of the IMajorObject object. For example, if the Major object is a database, the object returned is the parent Server.

Path

Gets the fully-qualified object name.

Methods

CreateBody()

Creates a new body for the IMajorObject.

DependsOn(IMajorObject)

A Boolean specifying whether the current object has a dependency on another object.

GetDependents(Hashtable)

Adds dependents to the specified Hashtable.

Refresh()

Updates the current object to use values obtained from the server.

Refresh(Boolean, RefreshType)

Updates the current object to use values obtained from the server and loads dependent values, if specified.

Update()

Updates the server definition of the object to use the values of the current object. If unspecified, default values are used to update dependent objects.

WriteRef(XmlWriter)

Writes the body of the IMajorObject in XML.

Applies to