Udostępnij za pośrednictwem


SqlSyncScopeProvisioning.ScopeExists Method

Returns whether the specified scope exists.

Namespace: Microsoft.Synchronization.Data.SqlServer
Assembly: Microsoft.Synchronization.Data.SqlServer (in microsoft.synchronization.data.sqlserver.dll)

Syntax

'Declaration
<SuppressMessageAttribute("Microsoft.Security", "CA2100:ReviewSqlQueriesForSecurityVulnerabilities")> _
Public Function ScopeExists ( _
    scopeName As String, _
    connection As SqlConnection _
) As Boolean
'Usage
Dim instance As SqlSyncScopeProvisioning
Dim scopeName As String
Dim connection As SqlConnection
Dim returnValue As Boolean

returnValue = instance.ScopeExists(scopeName, connection)
[SuppressMessageAttribute("Microsoft.Security", "CA2100:ReviewSqlQueriesForSecurityVulnerabilities")] 
public bool ScopeExists (
    string scopeName,
    SqlConnection connection
)
[SuppressMessageAttribute(L"Microsoft.Security", L"CA2100:ReviewSqlQueriesForSecurityVulnerabilities")] 
public:
bool ScopeExists (
    String^ scopeName, 
    SqlConnection^ connection
)
/** @attribute SuppressMessageAttribute("Microsoft.Security", "CA2100:ReviewSqlQueriesForSecurityVulnerabilities") */ 
public boolean ScopeExists (
    String scopeName, 
    SqlConnection connection
)
SuppressMessageAttribute("Microsoft.Security", "CA2100:ReviewSqlQueriesForSecurityVulnerabilities") 
public function ScopeExists (
    scopeName : String, 
    connection : SqlConnection
) : boolean

Parameters

  • scopeName
    The name of the scope to check.
  • connection
    A SqlConnection object that contains a connection to the database.

See Also

Reference

SqlSyncScopeProvisioning Class
SqlSyncScopeProvisioning Members
Microsoft.Synchronization.Data.SqlServer Namespace