SqlSmoObject.CheckObjectState SqlSmoObject.CheckObjectState SqlSmoObject.CheckObjectState Method

Definition

Validates the state of the referenced object.

Overloads

CheckObjectState() CheckObjectState() CheckObjectState()

Validates the state of the referenced object.

CheckObjectState(Boolean) CheckObjectState(Boolean) CheckObjectState(Boolean)

Validates the state of the referenced object with the option to specify that an exception is thrown if the object is not yet created.

CheckObjectState() CheckObjectState() CheckObjectState()

Validates the state of the referenced object.

protected:
 void CheckObjectState();
protected void CheckObjectState ();
Protected Sub CheckObjectState ()

Examples

Calling Methods

CheckObjectState(Boolean) CheckObjectState(Boolean) CheckObjectState(Boolean)

Validates the state of the referenced object with the option to specify that an exception is thrown if the object is not yet created.

protected:
 virtual void CheckObjectState(bool throwIfNotCreated);
protected virtual void CheckObjectState (bool throwIfNotCreated);
Protected Overridable Sub CheckObjectState (throwIfNotCreated As Boolean)
Parameters
throwIfNotCreated
Boolean Boolean Boolean

A Boolean value that specifies whether to throw an exception if the object is not yet created.

If True, the method throws an exception if the object is not yet created. Otherwise, False.

Remarks

Calling Methods

Applies to