Método SqlSyncScopeProvisioning.ScopeExists
Retorna se o escopo especificado existe.
Namespace: Microsoft.Synchronization.Data.SqlServer
Assembly: Microsoft.Synchronization.Data.SqlServer (em microsoft.synchronization.data.sqlserver.dll)
Sintaxe
'Declaração
<SuppressMessageAttribute("Microsoft.Security", "CA2100:ReviewSqlQueriesForSecurityVulnerabilities")> _
Public Function ScopeExists ( _
scopeName As String, _
connection As SqlConnection _
) As Boolean
'Uso
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
Parâmetros
- scopeName
O nome do escopo a ser verificado.
- connection
Um objeto SqlConnection que contém uma conexão com o banco de dados.
Consulte também
Referência
Classe SqlSyncScopeProvisioning
Membros SqlSyncScopeProvisioning
Namespace Microsoft.Synchronization.Data.SqlServer