Método TSqlParser.TryParseTriggerModule
Indicates whether the input script contains a trigger module.
Namespace: Microsoft.SqlServer.TransactSql.ScriptDom
Assembly: Microsoft.SqlServer.TransactSql.ScriptDom (em Microsoft.SqlServer.TransactSql.ScriptDom.dll)
Sintaxe
'Declaração
Public Function TryParseTriggerModule ( _
input As TextReader, _
<OutAttribute> ByRef triggerName As SchemaObjectName, _
<OutAttribute> ByRef targetName As SchemaObjectName _
) As Boolean
'Uso
Dim instance As TSqlParser
Dim input As TextReader
Dim triggerName As SchemaObjectName
Dim targetName As SchemaObjectName
Dim returnValue As Boolean
returnValue = instance.TryParseTriggerModule(input, _
triggerName, targetName)
public bool TryParseTriggerModule(
TextReader input,
out SchemaObjectName triggerName,
out SchemaObjectName targetName
)
public:
bool TryParseTriggerModule(
TextReader^ input,
[OutAttribute] SchemaObjectName^% triggerName,
[OutAttribute] SchemaObjectName^% targetName
)
member TryParseTriggerModule :
input:TextReader *
triggerName:SchemaObjectName byref *
targetName:SchemaObjectName byref -> bool
public function TryParseTriggerModule(
input : TextReader,
triggerName : SchemaObjectName,
targetName : SchemaObjectName
) : boolean
Parâmetros
- input
Tipo: System.IO.TextReader
The script that will be parsed.
- triggerName
Tipo: Microsoft.SqlServer.TransactSql.ScriptDom.SchemaObjectName%
When this method returns, contains the trigger object name. This parameter is passed uninitialized.
- targetName
Tipo: Microsoft.SqlServer.TransactSql.ScriptDom.SchemaObjectName%
When this method returns, contains the trigger target object name. This parameter is passed uninitialized.
Valor de retorno
Tipo: System.Boolean
true if the input script contains a trigger module; false.