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
参数
- templateName
类型:System. . :: . .String
要查找的模板的名称。
返回值
类型:System. . :: . .Boolean
如果指定的模板在数据库中存在,则为 true;否则为 false。