GetParameter 方法 (StringBuilder, ScriptingOptions, String, String, Int32, Boolean)
对 SqlSmoObject 的参数赋值。
命名空间: Microsoft.SqlServer.Management.Smo
程序集: Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)
语法
声明
Protected Friend Sub GetParameter ( _
buffer As StringBuilder, _
so As ScriptingOptions, _
propName As String, _
sqlPropScript As String, _
ByRef count As Integer, _
throwIfNotSet As Boolean _
)
用法
Dim buffer As StringBuilder
Dim so As ScriptingOptions
Dim propName As String
Dim sqlPropScript As String
Dim count As Integer
Dim throwIfNotSet As Boolean
Me.GetParameter(buffer, so, propName, _
sqlPropScript, count, throwIfNotSet)
protected internal void GetParameter(
StringBuilder buffer,
ScriptingOptions so,
string propName,
string sqlPropScript,
ref int count,
bool throwIfNotSet
)
protected public:
void GetParameter(
StringBuilder^ buffer,
ScriptingOptions^ so,
String^ propName,
String^ sqlPropScript,
int% count,
bool throwIfNotSet
)
member GetParameter :
buffer:StringBuilder *
so:ScriptingOptions *
propName:string *
sqlPropScript:string *
count:int byref *
throwIfNotSet:bool -> unit
function GetParameter(
buffer : StringBuilder,
so : ScriptingOptions,
propName : String,
sqlPropScript : String,
count : int,
throwIfNotSet : boolean
)
参数
- buffer
类型:System.Text. . :: . .StringBuilder
一个 StringBuilder 对象缓冲区。
- propName
类型:System. . :: . .String
一个指定属性名称的字符串值。
- sqlPropScript
类型:System. . :: . .String
一个指定脚本的字符串值。
- count
类型:System. . :: . .Int32%
一个指向指定计数的 Int32 的指针。
- throwIfNotSet
类型:System. . :: . .Boolean
一个布尔值,指示是否在未设置该参数时引发异常。