Méthode SqlSyncScopeProvisioning.ScopeExists
Indique en retour si l'étendue spécifiée existe.
Espace de noms: Microsoft.Synchronization.Data.SqlServer
Assembly: Microsoft.Synchronization.Data.SqlServer (dans microsoft.synchronization.data.sqlserver.dll)
Syntaxe
'Déclaration
<SuppressMessageAttribute("Microsoft.Security", "CA2100:ReviewSqlQueriesForSecurityVulnerabilities")> _
Public Function ScopeExists ( _
scopeName As String, _
connection As SqlConnection _
) As Boolean
'Utilisation
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
Paramètres
- scopeName
Nom de l'étendue à vérifier.
- connection
Objet SqlConnection qui contient une connexion à la base de données.
Voir aussi
Référence
Classe SqlSyncScopeProvisioning
Membres SqlSyncScopeProvisioning
Espace de noms Microsoft.Synchronization.Data.SqlServer