Partilhar via


Método ScriptDomGenerator.TryGenerateScriptDom

Gera um IScriptFragment por usando o elemento de modelo fornecido e a operação e retorna um valor que indica se o script foi gerado com êxito.

Namespace:  Microsoft.Data.Schema.SchemaModel
Assembly:  Microsoft.Data.Schema (em Microsoft.Data.Schema.dll)

Sintaxe

'Declaração
Public MustOverride Function TryGenerateScriptDom ( _
    element As IModelElement, _
    operation As ScriptDomOperation, _
    <OutAttribute> ByRef fragment As IScriptFragment _
) As Boolean
public abstract bool TryGenerateScriptDom(
    IModelElement element,
    ScriptDomOperation operation,
    out IScriptFragment fragment
)
public:
virtual bool TryGenerateScriptDom(
    IModelElement^ element, 
    ScriptDomOperation operation, 
    [OutAttribute] IScriptFragment^% fragment
) abstract
abstract TryGenerateScriptDom : 
        element:IModelElement * 
        operation:ScriptDomOperation * 
        fragment:IScriptFragment byref -> bool 
public abstract function TryGenerateScriptDom(
    element : IModelElement, 
    operation : ScriptDomOperation, 
    fragment : IScriptFragment
) : boolean

Parâmetros

Valor de retorno

Tipo: System.Boolean
true Se o script foi gerado com êxito; Caso contrário, false.

Segurança do .NET Framework

Consulte também

Referência

ScriptDomGenerator Classe

Namespace Microsoft.Data.Schema.SchemaModel

IScriptFragment

ScriptDomOperation

IScriptFragment