Delen via


SqlSmoObject.AddDatabaseContext Method (StringCollection, ScriptingOptions)

Add the database context to the collection of queries identified by the queries parameter, and using the specified scripting options.

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

Syntax

'Declaration
Protected Sub AddDatabaseContext ( _
    queries As StringCollection, _
    so As ScriptingOptions _
)
'Usage
Dim queries As StringCollection
Dim so As ScriptingOptions

Me.AddDatabaseContext(queries, so)
protected void AddDatabaseContext(
    StringCollection queries,
    ScriptingOptions so
)
protected:
void AddDatabaseContext(
    StringCollection^ queries, 
    ScriptingOptions^ so
)
member AddDatabaseContext : 
        queries:StringCollection * 
        so:ScriptingOptions -> unit 
protected function AddDatabaseContext(
    queries : StringCollection, 
    so : ScriptingOptions
)

Parameters

Remarks

Example