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
參數
- buffer
型別:System.Text. . :: . .StringBuilder
StringBuilder 物件緩衝。
- propName
型別:System. . :: . .String
指定屬性名稱的字串值。
- sqlPropScript
型別:System. . :: . .String
指定指令碼的字串值。
- count
型別:System. . :: . .Int32%
指定計數之 Int32 的指標。
傳回值
型別:System. . :: . .Boolean
表示是否已指派屬性的布林值,如果屬性不是 null 且已指派給整數值,則為 True,否則為 False。