Condividi tramite


Condition Class

Definition

This is the non-generated part of the Condition class.

public sealed class Condition : Microsoft.SqlServer.Management.Sdk.Sfc.SfcInstance, Microsoft.SqlServer.Management.Common.IAlterable, Microsoft.SqlServer.Management.Common.ICreatable, Microsoft.SqlServer.Management.Common.IDroppable, Microsoft.SqlServer.Management.Common.IRenamable, Microsoft.SqlServer.Management.Sdk.Sfc.ISfcAlterable, Microsoft.SqlServer.Management.Sdk.Sfc.ISfcCreatable, Microsoft.SqlServer.Management.Sdk.Sfc.ISfcDroppable, Microsoft.SqlServer.Management.Sdk.Sfc.ISfcRenamable, Microsoft.SqlServer.Management.Sdk.Sfc.ISfcValidate
type Condition = class
    inherit SfcInstance
    interface ISfcCreatable
    interface ICreatable
    interface ISfcDroppable
    interface IDroppable
    interface ISfcAlterable
    interface IAlterable
    interface ISfcRenamable
    interface IRenamable
    interface ISfcValidate
Public NotInheritable Class Condition
Inherits SfcInstance
Implements IAlterable, ICreatable, IDroppable, IRenamable, ISfcAlterable, ISfcCreatable, ISfcDroppable, ISfcRenamable, ISfcValidate
Inheritance
Condition
Implements

Constructors

Condition()

Default constructor used for deserialization. VSTS 55852.

Condition(PolicyStore, String)

Properties

AbstractIdentityKey (Inherited from SfcInstance)
CreateDate
CreatedBy
DateModified
Description
ExpressionNode
Facet
HasScript

Returns true if the condition contains an expression that runs a dynamic script, which is potentially dangerous.

ID
IdentityKey
IsEnumerable

Returns true if the condition can be used as a target set level filter condition, otherwise false.

IsSystemObject
KeyChain

Returns the identity path of the object

(Inherited from SfcInstance)
Metadata (Inherited from SfcInstance)
ModifiedBy
Name
Parent
Properties (Inherited from SfcInstance)
PropertyStorageProvider

This property returns the default implementation of SFC for ISfcPropertyStorageProvider interface, it can be overriden in the child classes to return another storage provider (i.e. flat properties list)

(Inherited from SfcInstance)
State (Inherited from SfcInstance)
Urn

Create a new Urn string on each request and return it.

(Inherited from SfcInstance)

Methods

Alter()
AlterImpl() (Inherited from SfcInstance)
CheckObjectCreated()

To be called from domain for when an API requires the object to be Created Stronger than CheckObjectState

(Inherited from SfcInstance)
CheckObjectState()

To be called from domain for any access to the object

(Inherited from SfcInstance)
Create()
CreateIdentityKey() (Inherited from SfcInstance)
CreateImpl() (Inherited from SfcInstance)
Discover(ISfcDependencyDiscoveryObjectSink)
Drop()
DropImpl() (Inherited from SfcInstance)
EnumDependentPolicies()

Returns a collection of Policy objects that are dependent on this Condition.

GetChildCollection(String)

Get the child collection in this instance for the given element name string.

(Inherited from SfcInstance)
GetDomain() (Inherited from SfcInstance)
GetObjectFactory()
GetPropertySet() (Inherited from SfcInstance)
GetSupportedEvaluationMode()

Aggregated evaluation mode supported by condition's expressions facets

GetSupportedEvaluationModeOnDomain(String)

Aggregated evaluation mode supported by condition's expressions facets

GetTypeMetadataImpl() (Inherited from SfcInstance)
InitializeUIPropertyState()

Overridable from the child objects who care about initializing their states (dynamic metadata which is currently the ".Enabled" property)

(Inherited from SfcInstance)
MarkForDropImpl(Boolean) (Inherited from SfcInstance)
MarkRootAsConnected() (Inherited from SfcInstance)
MoveImpl(SfcInstance) (Inherited from SfcInstance)
OnPropertyMetadataChanges(SfcPropertyMetadataChangedEventArgs) (Inherited from SfcInstance)
OnPropertyValueChanges(PropertyChangedEventArgs) (Inherited from SfcInstance)
PostAlter(Object) (Inherited from SfcInstance)
PostCreate(Object) (Inherited from SfcInstance)
PostDrop(Object) (Inherited from SfcInstance)
PostMove(Object) (Inherited from SfcInstance)
PostRename(Object) (Inherited from SfcInstance)
Refresh()

refreshes the object's properties by reading them from the server

(Inherited from SfcInstance)
Rename(String)

Renames the object on the server.

RenameImpl(SfcKey) (Inherited from SfcInstance)
ResetKey() (Inherited from SfcInstance)
ScriptAlter()

Scripts all changes on the object

ScriptCreate()

Scripts creation of the object

ScriptDrop()

Scripts deletion of the object

Serialize(XmlWriter) (Inherited from SfcInstance)
ToString() (Inherited from SfcInstance)
UpdateUIPropertyState() (Inherited from SfcInstance)
Validate()

Basic child object's validation

(Inherited from SfcInstance)
Validate(String)

Policy validation Unlike ISfcValidate.Validate, this method will throw the first exception it encounters If execution of this method doesn't produce any exceptions, validation passed

Events

propertyChanged (Inherited from SfcInstance)
PropertyChanged (Inherited from SfcInstance)
propertyMetadataChanged (Inherited from SfcInstance)
PropertyMetadataChanged (Inherited from SfcInstance)

Explicit Interface Implementations

ISfcRenamable.Rename(SfcKey)

Renames the object on the server.

ISfcRenamable.ScriptRename(SfcKey)
ISfcValidate.Validate(String, Object[])

ISfcValidate implementation for Policy

Applies to