ScopeExists 方法 (String)
使用建構函式中所指定的連接,指出指定的範圍是否存在資料庫中。
命名空間: Microsoft.Synchronization.Data.SqlServer
組件: Microsoft.Synchronization.Data.SqlServer (在 Microsoft.Synchronization.Data.SqlServer.dll 中)
語法
'宣告
Public Function ScopeExists ( _
scopeName As String _
) As Boolean
'用途
Dim instance As SqlSyncScopeProvisioning
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。