Dela via


ExpressionNode.ConvertToIntWithCheck Method

Converts the specified string to an integer.

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

Syntax

'Declaration
Protected Shared Function ConvertToIntWithCheck ( _
    value As String _
) As Integer
'Usage
Dim value As String
Dim returnValue As Integer

returnValue = ExpressionNode.ConvertToIntWithCheck(value)
protected static int ConvertToIntWithCheck(
    string value
)
protected:
static int ConvertToIntWithCheck(
    String^ value
)
static member ConvertToIntWithCheck : 
        value:string -> int 
protected static function ConvertToIntWithCheck(
    value : String
) : int

Parameters

Return Value

Type: System.Int32
A Int32 object value that specifies the result of the conversion.

Remarks

This allows you to create a filter node based on the object or group of objects that are defined by the expression node.

Examples

C#

FilterNode fnode = node.ExpressionNode.ConvertToFilterNode();