ScopeExists 方法 (String)
通过使用此前在构造函数中指定的连接来指示指定的作用域是否在数据库中存在。
命名空间: Microsoft.Synchronization.Data.SqlServerCe
程序集: Microsoft.Synchronization.Data.SqlServerCe(在 Microsoft.Synchronization.Data.SqlServerCe.dll 中)
语法
声明
Public Function ScopeExists ( _
scopeName As String _
) As Boolean
用法
Dim instance As SqlCeSyncScopeProvisioning
Dim scopeName As String
Dim returnValue As Boolean
returnValue = instance.ScopeExists(scopeName)
public bool ScopeExists(
string scopeName
)
public:
bool ScopeExists(
String^ scopeName
)
member ScopeExists :
scopeName:string -> bool
public function ScopeExists(
scopeName : String
) : boolean
参数
- scopeName
类型:System. . :: . .String
要查找的作用域的名称。
返回值
类型:System. . :: . .Boolean
如果指定的作用域在数据库中存在,则为 true;否则为 false。