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

参数

  • throwIfNotSet
    类型:System. . :: . .Boolean
    一个布尔值,指示是否在未设置该参数时引发异常。

返回值

类型:System. . :: . .Boolean
一个布尔值,如果方法成功,则为 true;否则为 false。