Export (0) Print
Expand All

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)

[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.

Return Value

Type: System.Boolean

ExceptionCondition
ArgumentNullException

connection is null.

ArgumentException

scopeName is null or empty.

DbSyncException

A transaction is already in progress.

Show:
© 2014 Microsoft