SqlSmoObject.GetDateTimeParameterAsInt Method
Assigns the datetime property of the SqlSmoObject as an integer value if the datetime property is not null.
Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
Protected Friend Function GetDateTimeParameterAsInt ( _
    buffer As StringBuilder, _
    so As ScriptingOptions, _
    propName As String, _
    sqlPropScript As String, _
    ByRef count As Integer _
) As Boolean
'Usage
Dim buffer As StringBuilder
Dim so As ScriptingOptions
Dim propName As String
Dim sqlPropScript As String
Dim count As Integer
Dim returnValue As Boolean
returnValue = Me.GetDateTimeParameterAsInt(buffer, _
    so, propName, sqlPropScript, count)
protected internal bool GetDateTimeParameterAsInt(
    StringBuilder buffer,
    ScriptingOptions so,
    string propName,
    string sqlPropScript,
    ref int count
)
protected public:
bool GetDateTimeParameterAsInt(
    StringBuilder^ buffer, 
    ScriptingOptions^ so, 
    String^ propName, 
    String^ sqlPropScript, 
    int% count
)
member GetDateTimeParameterAsInt : 
        buffer:StringBuilder * 
        so:ScriptingOptions * 
        propName:string * 
        sqlPropScript:string * 
        count:int byref -> bool 
 function GetDateTimeParameterAsInt(
    buffer : StringBuilder, 
    so : ScriptingOptions, 
    propName : String, 
    sqlPropScript : String, 
    count : int
) : boolean
Parameters
- buffer
Type: System.Text.StringBuilder
A StringBuilder object buffer. 
- so
Type: Microsoft.SqlServer.Management.Smo.ScriptingOptions
A ScriptingOptions object. 
- propName
Type: System.String
A string value that specifies the property name. 
- sqlPropScript
Type: System.String
A string value that specifies the script. 
- count
Type: System.Int32%
A pointer to Int32 that specifies the count. 
Return Value
Type: System.Boolean
A Boolean value that indicates whether the property was assigned, True if the property was not null and was assigned to an integer value, otherwise False.