MSDN Library

SqlSyncScopeProvisioning.ScopeExists Method (String, SqlConnection)

Note: This API is now obsolete.

Returns whether the specified scope exists.

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

[ObsoleteAttribute("Use Constructor with SqlConnection and ScopeExists(string scopeName)")]
public bool ScopeExists(
	string scopeName,
	SqlConnection connection
)

Parameters

scopeName
Type: System.String
The name of the scope to check.
connection
Type: System.Data.SqlClient.SqlConnection
A connection to the database.

Return Value

Type: System.Boolean

ExceptionCondition
ArgumentException

scopeName is null or empty.

ArgumentNullException

connection is null.

Show:
© 2016 Microsoft