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