Compartilhar via


Método AddDatabaseContext (StringCollection, ScriptingOptions)

Adiciona o contexto de banco de dados à coleção de consultas identificadas pelo parâmetro queries e usando as opções de script especificadas.

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

Sintaxe

'Declaração
Protected Sub AddDatabaseContext ( _
    queries As StringCollection, _
    so As ScriptingOptions _
)
'Uso
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
)

Parâmetros

Comentários

Example