GetDateTimeParameterAsInt 方法

SqlSmoObject 的日期时间属性赋一个整数值(如果该日期时间属性不为 Null)。

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
Protected Friend Function GetDateTimeParameterAsInt ( _
    buffer As StringBuilder, _
    so As ScriptingOptions, _
    propName As String, _
    sqlPropScript As String, _
    ByRef count As Integer _
) As Boolean
用法
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

参数

返回值

类型:System. . :: . .Boolean
一个指示属性是否已赋值的布尔值。如果属性不是 Null 并且被赋予整数值,则为 True;否则为 False。