共用方式為


TemplateExists 方法

傳回值,指出指定的範本是否存在資料庫中。

命名空間:  Microsoft.Synchronization.Data.SqlServer
組件:  Microsoft.Synchronization.Data.SqlServer (在 Microsoft.Synchronization.Data.SqlServer.dll 中)

語法

'宣告
Public Function TemplateExists ( _
    templateName As String _
) As Boolean
'用途
Dim instance As SqlSyncScopeProvisioning
Dim templateName As String
Dim returnValue As Boolean

returnValue = instance.TemplateExists(templateName)
public bool TemplateExists(
    string templateName
)
public:
bool TemplateExists(
    String^ templateName
)
member TemplateExists : 
        templateName:string -> bool 
public function TemplateExists(
    templateName : String
) : boolean

參數

傳回值

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

請參閱

參考

SqlSyncScopeProvisioning類別

SqlSyncScopeProvisioning 成員

Microsoft.Synchronization.Data.SqlServer 命名空間