Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- element
Type: Microsoft.Data.Schema.SchemaModel.IModelElement
An IModelElement object.
- operation
Type: Microsoft.Data.Schema.SchemaModel.ScriptDomOperation
A ScriptDomOperation to test
- fragment
Type: Microsoft.Data.Schema.ScriptDom.IScriptFragment%
(Output) The generated IScriptFragment object.
Return Value
Type: System.Boolean
true if the script was successfully generated; otherwise, false.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.