Share via


SqlSmoObject.GetBindRuleScript Method

Gets the script that specifies the binding rules.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Protected Function GetBindRuleScript ( _
    so As ScriptingOptions, _
    ruleSchema As String, _
    ruleName As String, _
    futureOnly As Boolean _
) As String
'Usage
Dim so As ScriptingOptions
Dim ruleSchema As String
Dim ruleName As String
Dim futureOnly As Boolean
Dim returnValue As String

returnValue = Me.GetBindRuleScript(so, _
    ruleSchema, ruleName, futureOnly)
protected string GetBindRuleScript(
    ScriptingOptions so,
    string ruleSchema,
    string ruleName,
    bool futureOnly
)
protected:
String^ GetBindRuleScript(
    ScriptingOptions^ so, 
    String^ ruleSchema, 
    String^ ruleName, 
    bool futureOnly
)
member GetBindRuleScript : 
        so:ScriptingOptions * 
        ruleSchema:string * 
        ruleName:string * 
        futureOnly:bool -> string 
protected function GetBindRuleScript(
    so : ScriptingOptions, 
    ruleSchema : String, 
    ruleName : String, 
    futureOnly : boolean
) : String

Parameters

  • ruleSchema
    Type: System.String
    A string value that specifies the rule schema.
  • ruleName
    Type: System.String
    A string value that specifies the rule name.
  • futureOnly
    Type: System.Boolean
    A Boolean value that specifies whether the binding refers only to future bindings.

Return Value

Type: System.String
A string value that contains the binding script.