Share via


ScriptDomGenerator.TryGenerateScriptDom Method

Generates an IScriptFragment by using the provided model element and operation, and returns a value that indicates whether the script was successfully generated.

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

Syntax

'Declaration
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

Parameters

Return Value

Type: System.Boolean
true if the script was successfully generated; otherwise, false.

.NET Framework Security

See Also

Reference

ScriptDomGenerator Class

Microsoft.Data.Schema.SchemaModel Namespace

IScriptFragment

ScriptDomOperation

IScriptFragment