Share via


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

參數

傳回值

型別:System. . :: . .Boolean
如果指定的範圍存在於資料庫中,則為 true,否則為 false。

請參閱

參考

SqlCeSyncScopeProvisioning類別

SqlCeSyncScopeProvisioning 成員

ScopeExists 多載

Microsoft.Synchronization.Data.SqlServerCe 命名空間