SqlSyncScopeProvisioning.ScopeExists Method (String, SqlConnection)
Note: This API is now obsolete.
Returns whether the specified scope exists.
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.
| Exception | Condition |
|---|---|
| ArgumentException | scopeName is null or empty. |
| ArgumentNullException | connection is null. |
Show: