Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Parses the specified expression string.
Namespace: Microsoft.SqlServer.Management.Dmf
Assembly: Microsoft.SqlServer.Dmf (in Microsoft.SqlServer.Dmf.dll)
Syntax
'Declaration
Public Shared Function Parse ( _
input As String _
) As ExpressionNode
'Usage
Dim input As String
Dim returnValue As ExpressionNode
returnValue = ExpressionNode.Parse(input)
public static ExpressionNode Parse(
string input
)
public:
static ExpressionNode^ Parse(
String^ input
)
static member Parse :
input:string -> ExpressionNode
public static function Parse(
input : String
) : ExpressionNode
Parameter
- input
Typ: System.String
A String value that specifies the string to be parsed.
Rückgabewert
Typ: Microsoft.SqlServer.Management.Dmf.ExpressionNode
An ExpressionNode object value that specifies part of an expression.
Hinweise
Depending on the type of expression the object assigns the appropriate type when parsing. For example, the ExecuteSql statement specifies a function. If the expression contains a function then the Type property is set to Function.
The expression must conform to the Transact-SQL expression syntax:
property comparison_operator constantList
where
property: one of the facet properties
comparison_operator: = != > >= < <= [NOT]LIKE [NOT]IN
constantList: constant [, constantList]
Hinweis |
|---|
The Like operator uses the Transact-SQL syntax. |
The expression can be extended using logical operators:
condition_expression logical_operator condition_expression
where
logical_operator: AND OR
Beispiele
C#
string expressionStr = "ExecuteSql('Numeric','SELECT 1')";
ExpressionNode node = ExpressionNode.Parse (expressionStr);
TestAssertion.IsTrue (node.Type == ExpressionNodeType.Function, "Should be function");
Hinweis