Метод SqlSyncScopeProvisioning.ScopeExists
Указывает, существует ли заданная область.
Пространство имен: Microsoft.Synchronization.Data.SqlServer
Сборка: Microsoft.Synchronization.Data.SqlServer (в microsoft.synchronization.data.sqlserver.dll)
Синтаксис
'Декларация
<SuppressMessageAttribute("Microsoft.Security", "CA2100:ReviewSqlQueriesForSecurityVulnerabilities")> _
Public Function ScopeExists ( _
scopeName As String, _
connection As SqlConnection _
) As Boolean
'Применение
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
Параметры
- scopeName
Имя проверяемой области.
- connection
Объект SqlConnection, содержащий соединение с базой данных.
См. также
Справочник
Класс SqlSyncScopeProvisioning
Элементы SqlSyncScopeProvisioning
Пространство имен Microsoft.Synchronization.Data.SqlServer