Export (0) Print
Expand All

Target Class

Represents the runtime class for Target objects. Each instance of this class represents a row in sys.server_event_session_targets.

Object
  Microsoft.SqlServer.Management.Sdk.Sfc.SfcInstance
    Microsoft.SqlServer.Management.XEvent.Target

Namespace:  Microsoft.SqlServer.Management.XEvent
Assembly:  Microsoft.SqlServer.Management.XEvent (in Microsoft.SqlServer.Management.XEvent.dll)

public sealed class Target : SfcInstance, 
	ISfcDiscoverObject, ISessionObject

The Target type exposes the following members.

  NameDescription
Public methodTarget()Initializes a new instance of the Target class.
Public methodTarget(Session, TargetInfo)Initializes a new instance of the Target class.
Public methodTarget(Session, String)Initializes a new instance of the Target class with the given parent and name.
Top

  NameDescription
Protected propertyAbstractIdentityKeyDo not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcInstance.)
Public propertyDescriptionGets or sets target description. The set accessor is for internal use only.
Public propertyIDGets the identifier for a Target object.
Public propertyIdentityKeyGets the identity key of a Target object.
Public propertyMetadataReturns metadata about the instance and its domain. (Inherited from SfcInstance.)
Public propertyModuleIDGets the module identifier.
Public propertyNameGets the name of the Target object.
Public propertyPackageNameGets the name of the Package object that owns the Target object.
Public propertyParentGets the parent Session object for the Target object.
Public propertyPropertiesReturns a collection instance properties. (Inherited from SfcInstance.)
Public propertyScriptNameGets the script name.
Public propertyStateGets the state of the object used in Alter function in session.
Public propertyTargetFieldsGets the TargetColumnInfoCollection.
Public propertyUrnReturns the uniform resource name of the SfcInstance object. (Inherited from SfcInstance.)
Top

  NameDescription
Protected methodCreateIdentityKeyDo not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcInstance.)
Public methodDiscoverDo not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcInstance.)
Public methodEquals (Inherited from Object.)
Protected methodGetChildCollectionDo not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcInstance.)
Public methodGetDomainDo not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcInstance.)
Public methodGetHashCode (Inherited from Object.)
Public methodStatic memberGetObjectFactoryGets the SQL Foundation Class object factory.
Public methodGetPropertySetReturns the set of properties for the SfcInstance object. (Inherited from SfcInstance.)
Public methodGetTargetDataGets the target data.
Public methodGetType (Inherited from Object.)
Public methodStatic memberGetTypeMetadataGets the type of the metadata.
Protected methodGetTypeMetadataImplIndicates the domains that override by returning the right TypeMetadata class directly. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcInstance.)
Public methodHasCustomizableFieldDetermines whether the target has customizable field.
Protected methodInitializeUIPropertyStateDo not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcInstance.)
Protected methodOnPropertyMetadataChangesInvoked whenever the effective value of any SfcInstance metadata is updated. (Inherited from SfcInstance.)
Protected methodOnPropertyValueChangesInvoked whenever the effective value of any SfcInstance property is updated. (Inherited from SfcInstance.)
Public methodRefreshRefreshes the object's properties by reading them from the server. (Inherited from SfcInstance.)
Protected methodResetKeyDo not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcInstance.)
Public methodSerializeSerializes the instance to XML. (Inherited from SfcInstance.)
Public methodSetTargetInfoSets the TargetInfo object for a pending target.
Public methodToStringReturns a string representation of the instance Urn. (Inherited from SfcInstance.)
Top

  NameDescription
Public eventPropertyChangedCLS-compliant event for property changes. (Inherited from SfcInstance.)
Public eventPropertyMetadataChangedCLS-compliant event for property metadata changes. (Inherited from SfcInstance.)
Top

  NameDescription
Public fieldStatic memberTypeTypeNameSpecifies the type of the type name.
Top

  NameDescription
Explicit interface implemetationPrivate methodISessionObject.GetCreateScriptGets the create script for the target.
Explicit interface implemetationPrivate methodISessionObject.GetDropScriptGets the drop script for the target.
Explicit interface implemetationPrivate methodISessionObject.IsDirtyDetermines whether the target data is dirty.
Explicit interface implemetationPrivate methodISfcDiscoverObject.DiscoverDiscovers or alters events referenced by the sink parameter.
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2014 Microsoft