IDataDestination.ScriptConstraints Method
Retrieves a script for all the constraints in the given schema.
Namespace: Microsoft.SqlServerCe.Management.Scripting
Assembly: Microsoft.SqlServerCe.Management.Scripting (in Microsoft.SqlServerCe.Management.Scripting.dll)
Syntax
'Declaration
Function ScriptConstraints ( _
constraints As ReadOnlyCollection(Of Constraint), _
options As ScriptOptions _
) As StringCollection
'Usage
Dim instance As IDataDestination
Dim constraints As ReadOnlyCollection(Of Constraint)
Dim options As ScriptOptions
Dim returnValue As StringCollection
returnValue = instance.ScriptConstraints(constraints, _
options)
StringCollection ScriptConstraints(
ReadOnlyCollection<Constraint> constraints,
ScriptOptions options
)
StringCollection^ ScriptConstraints(
ReadOnlyCollection<Constraint^>^ constraints,
ScriptOptions^ options
)
abstract ScriptConstraints :
constraints:ReadOnlyCollection<Constraint> *
options:ScriptOptions -> StringCollection
function ScriptConstraints(
constraints : ReadOnlyCollection<Constraint>,
options : ScriptOptions
) : StringCollection
Parameters
- constraints
Type: System.Collections.ObjectModel.ReadOnlyCollection<Constraint>
Constraints information.
- options
Type: Microsoft.SqlServerCe.Management.Scripting.ScriptOptions
Script options that need to be supported.
Return Value
Type: System.Collections.Specialized.StringCollection
Script for the given constraints.