Condividi tramite


Action Class

Definition

RunTime class for Action. Each instance of this class represents a row in sys.server_event_session_actions.

public sealed class Action : Microsoft.SqlServer.Management.Sdk.Sfc.SfcInstance
type Action = class
    inherit SfcInstance
Public NotInheritable Class Action
Inherits SfcInstance
Inheritance

Constructors

Action()

Initializes a new instance of the Action class.

Action(Event, ActionInfo)

Initializes a new instance of the Action class from an instance of ActionInfo.

Action(Event, String)

Initializes a new instance of the Action class with the given parent and name. The name here should be in form of eventModuleId.packagename.eventname or packagename.eventname.

Fields

TypeTypeName

Type name

Properties

AbstractIdentityKey (Inherited from SfcInstance)
Description

Gets or sets action description. Set accessor is for internal use only.

IdentityKey

Gets the identity key.

KeyChain

Returns the identity path of the object

(Inherited from SfcInstance)
Metadata (Inherited from SfcInstance)
ModuleID

Gets the module ID.

Name

The name of the Action

PackageName

Gets the name of the package this action belongs to.

Parent

Gets or sets the 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

State of the object, used in Alter function in session.

Urn

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

(Inherited from SfcInstance)

Methods

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)
CreateIdentityKey() (Inherited from SfcInstance)
CreateImpl() (Inherited from SfcInstance)
Discover(ISfcDependencyDiscoveryObjectSink) (Inherited from SfcInstance)
DropImpl() (Inherited from SfcInstance)
GetChildCollection(String)

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

(Inherited from SfcInstance)
GetDomain() (Inherited from SfcInstance)
GetObjectFactory()

Gets the object factory.

GetPropertySet() (Inherited from SfcInstance)
GetScriptCreate()

Gets Create script for the Action.

GetTypeMetadata()

Gets Sfc Type Metadata.

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)
RenameImpl(SfcKey) (Inherited from SfcInstance)
ResetKey() (Inherited from SfcInstance)
Serialize(XmlWriter) (Inherited from SfcInstance)
SetActionInfo(ActionInfo)

Set the ActionInfo for a pending Action.

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

Basic child object's validation

(Inherited from SfcInstance)

Events

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

Applies to