SqlSyncScopeDeprovisioning::DeprovisionTemplate Method
Deprovisions the specified template and all scopes that were created from the specified template by removing all associated synchronization elements from the database.
Assembly: Microsoft.Synchronization.Data.SqlServer (in Microsoft.Synchronization.Data.SqlServer.dll)
The following example removes the customertype_template template from a SQL Server database. Removing the template also removes all other scopes that were created from this template.
// Remove the "customertype_template" template from the server database. This also removes all of the // scopes that depend on the template. SqlSyncScopeDeprovisioning serverSqlDepro = new SqlSyncScopeDeprovisioning(serverConn); serverSqlDepro.DeprovisionTemplate("customertype_template");
' Remove the "customertype_template" template from the server database. This also removes all of the ' scopes that depend on the template. Dim serverSqlDepro As New SqlSyncScopeDeprovisioning(serverConn) serverSqlDepro.DeprovisionTemplate("customertype_template")
Show: