Partager via


Membres Trigger

The Trigger object represents a SQL Server trigger.

Le type Trigger expose les membres suivants.

Constructeurs

  Nom Description
Méthode publique Trigger() () () () Initializes a new instance of the Trigger class.
Méthode publique Trigger(SqlSmoObject, String) Initializes a new instance of the Trigger class on the specified object, and with the specified name.

Haut de la page

Méthodes

  Nom Description
Méthode protégée AddDatabaseContext (Hérité de SqlSmoObject.)
Méthode publique Alter Updates any Trigger object property changes on instance of Microsoft SQL Server . 
Méthode protégée AlterImpl (Hérité de SqlSmoObject.)
Méthode protégée AlterImplFinish (Hérité de SqlSmoObject.)
Méthode protégée AlterImplInit (Hérité de SqlSmoObject.)
Méthode protégée AlterImplWorker (Hérité de SqlSmoObject.)
Méthode protégée AppendCommaText (Hérité de ScriptNameObjectBase.)
Méthode protégée AppendWithCommaText (Hérité de ScriptNameObjectBase.)
Méthode protégée AppendWithOption (Hérité de ScriptNameObjectBase.)
Méthode protégée BindDefaultImpl (Hérité de SqlSmoObject.)
Méthode protégée BindRuleImpl (Hérité de SqlSmoObject.)
Méthode protégée CheckCollation (Hérité de SqlSmoObject.)
Méthode protégée CheckObjectDirty (Hérité de ScriptNameObjectBase.)
Méthode protégée CheckObjectState() () () () Validates the state of the referenced object. (Hérité de SqlSmoObject.)
Méthode protégée 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. (Hérité de SqlSmoObject.)
Méthode protégée CheckObjectStateImpl (Hérité de SqlSmoObject.)
Méthode protégée CheckTextCorectness (Hérité de ScriptNameObjectBase.)
Méthode protégée CheckTextModeSupport (Hérité de ScriptNameObjectBase.)
Méthode protégée CheckVersion100 (Hérité de SqlSmoObject.)
Méthode protégée CheckVersion80 Checks the validity of the object on SQL Server 2000. (Hérité de SqlSmoObject.)
Méthode protégée CheckVersion80SP3 Checks the validity of the object on SQL Server 2000 SP3. (Hérité de SqlSmoObject.)
Méthode protégée CheckVersion90 Check the validity of the object on SQL Server 2005. (Hérité de SqlSmoObject.)
Méthode protégée CheckVersionBelow90 (Hérité de SqlSmoObject.)
Méthode protégée CleanObject Cleans the referenced object. (Hérité de ScriptNameObjectBase.)
Méthode publique Create Creates a trigger on the instance of SQL Server as defined by the Trigger object.
Méthode protégée CreateImpl (Hérité de SqlSmoObject.)
Méthode protégée CreateImplFinish (Hérité de SqlSmoObject.)
Méthode protégée CreateImplInit (Hérité de SqlSmoObject.)
Méthode publique Discover (Hérité de SqlSmoObject.)
Méthode publique Drop Removes the trigger from the instance of SQL Server .
Méthode protégée DropImpl (Hérité de SqlSmoObject.)
Méthode protégée DropImplWorker (Hérité de SqlSmoObject.)
Méthode protégée EnumScriptImpl (Hérité de SqlSmoObject.)
Méthode protégée EnumScriptImplWorker (Hérité de SqlSmoObject.)
Méthode publique Equals (Hérité de Object.)
Méthode protégée Finalize (Hérité de Object.)
Méthode protégée ForceTextModeOnTextBody Enforces text mode on the text body. (Hérité de ScriptNameObjectBase.)
Méthode protégée FormatSqlVariant (Hérité de SqlSmoObject.)
Méthode protégée GenerateDataSpaceFileStreamScript (Hérité de SqlSmoObject.)
Méthode protégée GenerateDataSpaceScript (Hérité de SqlSmoObject.)
Méthode protégée GetBindDefaultScript (Hérité de SqlSmoObject.)
Méthode protégée GetBindRuleScript (Hérité de SqlSmoObject.)
Méthode protégée GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%) (Hérité de SqlSmoObject.)
Méthode protégée GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) (Hérité de SqlSmoObject.)
Méthode protégée GetBraketNameForText (Hérité de ScriptNameObjectBase.)
Méthode protégée GetDateTimeParameter (Hérité de SqlSmoObject.)
Méthode protégée GetDateTimeParameterAsInt (Hérité de SqlSmoObject.)
Méthode protégée GetDBName Gets the database name that is associated with the object. (Hérité de SqlSmoObject.)
Méthode protégée GetEnumParameter (Hérité de SqlSmoObject.)
Méthode protégée GetFragOptionString (Hérité de SqlSmoObject.)
Méthode protégée GetGuidParameter (Hérité de SqlSmoObject.)
Méthode publique GetHashCode (Hérité de Object.)
Méthode protégée GetIsTextDirty Determines whether the text value is consistent with stored value. (Hérité de ScriptNameObjectBase.)
Méthode protégée GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%) (Hérité de SqlSmoObject.)
Méthode protégée GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) (Hérité de SqlSmoObject.)
Méthode protégée GetPropValue (Hérité de SqlSmoObject.)
Méthode protégée GetPropValueOptional (Hérité de SqlSmoObject.)
Méthode protégée GetPropValueOptionalAllowNull (Hérité de SqlSmoObject.)
Méthode protégée GetRealValue (Hérité de SqlSmoObject.)
Méthode protégée GetScriptIncludeExists (Hérité de ScriptNameObjectBase.)
Méthode protégée GetScriptingOptionsForCreate (Hérité de SqlSmoObject.)
Méthode protégée GetServerName Gets the name of the instance of SQL Server with which the object is associated. (Hérité de SqlSmoObject.)
Méthode protégée GetServerObject (Hérité de SqlSmoObject.)
Méthode protégée GetSqlServerVersionName Gets the version name of the instance of SQL Server with which the object is associated. (Hérité de SqlSmoObject.)
Méthode protégée GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%) (Hérité de SqlSmoObject.)
Méthode protégée GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) (Hérité de SqlSmoObject.)
Méthode protégée GetTextBody() () () () Returns the text body. (Hérité de ScriptNameObjectBase.)
Méthode protégée GetTextBody(Boolean) Returns the text body. (Hérité de ScriptNameObjectBase.)
Méthode protégée GetTextForScript(ScriptingOptions, Boolean, array<String> [] () [] []) Gets the text for scripting. (Hérité de ScriptNameObjectBase.)
Méthode protégée GetTextForScript(ScriptingOptions, Boolean, array<String> [] () [] [], Boolean) (Hérité de ScriptNameObjectBase.)
Méthode protégée GetTextHeader Returns the text header. (Hérité de ScriptNameObjectBase.)
Méthode protégée GetTextMode Determines whether the script name is using text mode. (Hérité de ScriptNameObjectBase.)
Méthode protégée GetTextProperty(String) (Hérité de ScriptNameObjectBase.)
Méthode protégée GetTextProperty(String, ScriptingOptions) (Hérité de ScriptNameObjectBase.)
Méthode protégée GetTimeSpanParameterAsInt (Hérité de SqlSmoObject.)
Méthode publique GetType (Hérité de Object.)
Méthode protégée GetUrnRecursive(StringBuilder) (Hérité de SqlSmoObject.)
Méthode protégée GetUrnRecursive(StringBuilder, UrnIdOption) (Hérité de SqlSmoObject.)
Méthode protégée ImplInitialize (Hérité de SqlSmoObject.)
Méthode publique Initialize() () () () Initializes the object and forces the properties be loaded. (Hérité de SqlSmoObject.)
Méthode publique Initialize(Boolean) Initializes the object and forces the properties be loaded. (Hérité de SqlSmoObject.)
Méthode protégée IsObjectDirty Determines whether the referenced object is consistent with the stored object. (Hérité de ScriptNameObjectBase.)
Méthode protégée IsObjectInitialized Verifies whether the object has been initialized. (Hérité de SqlSmoObject.)
Méthode protégée IsObjectInSpace Verifies whether the object is isolated or connected to the instance of SQL Server. (Hérité de SqlSmoObject.)
Méthode protégée IsVersion80SP3 (Hérité de SqlSmoObject.)
Méthode protégée MarkDropped (Hérité de SqlSmoObject.)
Méthode publique MarkForDrop Marks the trigger to be dropped.
Méthode protégée MarkForDropImpl (Hérité de SqlSmoObject.)
Méthode protégée MemberwiseClone (Hérité de Object.)
Méthode protégée PostAlter (Hérité de SqlSmoObject.)
Méthode protégée PostCreate (Hérité de SqlSmoObject.)
Méthode protégée PostDrop (Hérité de SqlSmoObject.)
Méthode publique ReCompileReferences
Méthode publique Refresh Refreshes the script name. (Hérité de ScriptNameObjectBase.)
Méthode protégée RenameImpl This method supports the SMO infrastructure and is not intended to be used directly from your code. (Hérité de NamedSmoObject.)
Méthode protégée RenameImplWorker This method supports the SMO infrastructure and is not intended to be used directly from your code. (Hérité de NamedSmoObject.)
Méthode publique Script() () () () Generates a Transact-SQL script that can be used to re-create the trigger.
Méthode publique Script(ScriptingOptions) Generates a Transact-SQL script that can be used to re-create the trigger as specified by the script options.
Méthode protégée ScriptAlter (Hérité de SqlSmoObject.)
Méthode protégée ScriptAnsiQI (Hérité de ScriptNameObjectBase.)
Méthode protégée ScriptChangeOwner This method supports the SMO infrastructure and is not intended to be used directly from your code. (Hérité de NamedSmoObject.)
Méthode protégée ScriptCreate (Hérité de SqlSmoObject.)
Méthode protégée ScriptDdl (Hérité de SqlSmoObject.)
Méthode protégée ScriptDrop (Hérité de SqlSmoObject.)
Méthode publique ScriptHeader Returns the text header with the option to modify the text.
Méthode protégée ScriptImpl() () () () (Hérité de SqlSmoObject.)
Méthode protégée ScriptImpl(ScriptingOptions) (Hérité de SqlSmoObject.)
Méthode protégée ScriptImplWorker (Hérité de SqlSmoObject.)
Méthode protégée ScriptInformativeHeaders (Hérité de ScriptNameObjectBase.)
Méthode protégée ScriptRename This method supports the SMO infrastructure and is not intended to be used directly from your code. (Hérité de NamedSmoObject.)
Méthode protégée SetCollectionTextMode Sets the collection text mode. (Hérité de ScriptNameObjectBase.)
Méthode protégée SetParentImpl (Hérité de SqlSmoObject.)
Méthode protégée SetTextBody Specifies the text body. (Hérité de ScriptNameObjectBase.)
Méthode protégée SetTextHeader Specifies the text header. (Hérité de ScriptNameObjectBase.)
Méthode protégée SetTextMode Specifies the text mode. (Hérité de ScriptNameObjectBase.)
Méthode protégée SwitchTextMode Switches the text mode. (Hérité de ScriptNameObjectBase.)
Méthode protégée ThrowIfTextIsDirtyForAlter (Hérité de ScriptNameObjectBase.)
Méthode publique ToString Returns a String that represents the referenced object. (Hérité de SqlSmoObject.)
Méthode protégée TouchImpl (Hérité de SqlSmoObject.)
Méthode protégée UnbindDefaultImpl (Hérité de SqlSmoObject.)
Méthode protégée UnbindRuleImpl (Hérité de SqlSmoObject.)
Méthode publique Validate (Hérité de SmoObjectBase.)

Haut de la page

Champs

  Nom Description
Champ protégé m_ExtendedProperties (Hérité de SqlSmoObject.)

Haut de la page

Propriétés

  Nom Description
Propriété publique AnsiNullsStatus Gets the Boolean property value that specifies whether ISO NULL handling is enabled in the trigger.
Propriété publique AssemblyName Gets or sets the name of the .NET assembly that is required by the referenced trigger.
Propriété publique ClassName Gets or sets the name of the class that is called by the referenced trigger.
Propriété publique CreateDate Gets the date and time when the trigger was created.
Propriété publique DateLastModified Gets the date and time when the trigger was last modified.
Propriété publique Delete Gets or sets the Boolean property value that specifies whether the trigger is executed when records are deleted from the table.
Propriété publique DeleteOrder Gets or sets the order in which the trigger and the delete operation are executed.
Propriété publique Events Gets the events that are associated with the trigger.
Propriété protégée ExecuteForScalar Gets or sets the Boolean property value that specifies whether the object is set to the execute for scalar option. (Hérité de SqlSmoObject.)
Propriété publique ExecutionContext Gets or sets the execution context.
Propriété publique ExecutionContextPrincipal Gets or sets the execution context principal.
Propriété publique ExtendedProperties Gets the extended properties of the Trigger object.
Propriété publique ID Gets the ID value that uniquely identifies the trigger.
Propriété publique ImplementationType Gets or sets the implementation type of the trigger.
Propriété publique Insert Gets or sets the Boolean property value that specifies whether the trigger is fired when records are inserted into the table.
Propriété publique InsertOrder Gets or sets the order in which the trigger and the insert operation are executed.
Propriété publique InsteadOf Gets or sets a Boolean property that specifies whether the trigger runs instead of the insert, delete, or update operation.
Propriété publique IsEnabled Gets or sets the Boolean property that specifies whether the trigger is enabled.
Propriété publique IsEncrypted Gets or sets the Boolean property value that specifies whether the trigger is encrypted.
Propriété publique IsSystemObject Gets the Boolean property value that specifies whether the trigger is a system object.
Propriété protégée IsTouched Gets the Boolean property value that specifies whether the object properties have been updated but not yet persisted on the server. (Hérité de SqlSmoObject.)
Propriété publique MethodName Gets the method name for the trigger.
Propriété publique Name Gets or sets the name of the object. (Hérité de NamedSmoObject.)
Propriété publique NotForReplication Gets or sets a Boolean property value that specifies whether the trigger is included in replication operations.
Propriété protégée ObjectInSpace Gets the Boolean property value that specifies whether the object exists in isolation, or whether it is directly or indirectly connected to the instance of SQL Server. (Hérité de SqlSmoObject.)
Propriété publique Parent Gets or sets the SqlSmoObject object that is the parent of the Trigger object.
Propriété publique Properties Gets a collection of Property objects that represent the object properties. (Hérité de SqlSmoObject.)
Propriété publique QuotedIdentifierStatus Gets or sets a Boolean property value that specifies whether identifiers delimited by double quotation marks are Transact-SQL reserved keywords or contain characters not usually allowed by the Transact-SQL syntax rules.
Propriété protégée ScalarResult Gets the scalar result for the referenced object. (Hérité de SqlSmoObject.)
Propriété publique State Gets the state of the referenced object. (Hérité de SmoObjectBase.)
Propriété publique TextBody Gets or sets the Transact-SQL string that defines the trigger.
Propriété publique TextHeader Gets or sets the header part of the Transact-SQL string that defines the trigger.
Propriété publique TextMode Gets or sets the Boolean property that specifies whether the text header is editable as text.
Propriété publique Update Gets or sets the Boolean property value that specifies whether the trigger is fired when records are updated in the table.
Propriété publique UpdateOrder Gets or sets the order in which the trigger and the update operation are executed.
Propriété publique Urn Gets the Uniform Resource Name (URN) address value that uniquely identifies the object. (Hérité de SqlSmoObject.)
Propriété publique UserData Gets or sets user-defined data associated with the referenced object. (Hérité de SmoObjectBase.)

Haut de la page

Événements

  Nom Description
Événement public PropertyChanged (Hérité de SqlSmoObject.)
Événement public PropertyMetadataChanged (Hérité de SqlSmoObject.)

Haut de la page

Implémentations d'interfaces explicites

  Nom Description
Implémentation d'interface expliciteMéthode privée IAlienObjectDiscover (Hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée IAlienObjectGetParent (Hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée IAlienObjectGetProperty (Hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée ISfcPropertyProviderGetPropertySet (Hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée IAlienObjectGetUrn (Hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée IAlienObjectResolve (Hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée IAlienObjectSetProperty (Hérité de SqlSmoObject.)

Haut de la page