SqlCeSyncScopeProvisioning.ScopeExists Method (String, )
Note: This API is now obsolete.
Returns whether the specified scope exists.
Assembly: Microsoft.Synchronization.Data.SqlServerCe (in Microsoft.Synchronization.Data.SqlServerCe.dll)
[ObsoleteAttribute("Use Connection property and ScopeExists(string scopeName)")] public bool ScopeExists( string scopeName, SqlCeConnection connection )
Parameters
- scopeName
- Type: System.String
The name of the scope to check.
- connection
- Type: SqlCeConnection
A SqlCeConnection object that contains a connection to the database.
| Exception | Condition |
|---|---|
| ArgumentNullException | connection is null. |
| ArgumentException | scopeName is null or empty. |
| DbSyncException | A transaction is already in progress. |
Show: