Share via


SqlCeSyncScopeProvisioning.ScopeExists Method (String, )

Note: This API is now obsolete.

Returns whether the specified scope exists.

Namespace:  Microsoft.Synchronization.Data.SqlServerCe
Assembly:  Microsoft.Synchronization.Data.SqlServerCe (in Microsoft.Synchronization.Data.SqlServerCe.dll)

Syntax

'Declaration
<ObsoleteAttribute("Use Connection property and ScopeExists(string scopeName)")> _
Public Function ScopeExists ( _
    scopeName As String, _
    connection As SqlCeConnection _
) As Boolean
'Usage
Dim instance As SqlCeSyncScopeProvisioning
Dim scopeName As String
Dim connection As SqlCeConnection
Dim returnValue As Boolean

returnValue = instance.ScopeExists(scopeName, _
    connection)
[ObsoleteAttribute("Use Connection property and ScopeExists(string scopeName)")]
public bool ScopeExists(
    string scopeName,
    SqlCeConnection connection
)
[ObsoleteAttribute(L"Use Connection property and ScopeExists(string scopeName)")]
public:
bool ScopeExists(
    String^ scopeName, 
    SqlCeConnection^ connection
)
[<ObsoleteAttribute("Use Connection property and ScopeExists(string scopeName)")>]
member ScopeExists : 
        scopeName:string * 
        connection:SqlCeConnection -> bool 
public function ScopeExists(
    scopeName : String, 
    connection : SqlCeConnection
) : boolean

Parameters

  • connection
    Type: SqlCeConnection
    A SqlCeConnection object that contains a connection to the database.

Return Value

Type: System.Boolean

Exceptions

Exception Condition
ArgumentNullException

connection is null reference (Nothing in Visual Basic).

ArgumentException

scopeName is null reference (Nothing in Visual Basic) or empty.

DbSyncException

A transaction is already in progress.

See Also

Reference

SqlCeSyncScopeProvisioning Class

ScopeExists Overload

Microsoft.Synchronization.Data.SqlServerCe Namespace