Compartir a través de


GetStringParameter Método (StringBuilder, ScriptingOptions, String, String, Int32, Boolean)

Asigna un parámetro de cadena del objeto SqlSmoObject.

Espacio de nombres:  Microsoft.SqlServer.Management.Smo
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
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
'Uso
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

Parámetros

  • throwIfNotSet
    Tipo: System. . :: . .Boolean
    Valor booleano que indica si se debe producir una excepción si no se ha establecido el parámetro.

Valor devuelto

Tipo: System. . :: . .Boolean
Valor booleano que es true si el método se realiza correctamente; en caso contrario, es false.