Share via


WSSSynchScheduler Class

Represents a user profile synchronization scheduler. This class is not intended to be used directly from your code; instead, use stsadm.exe.

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.Administration.SPAutoSerializingObject
    Microsoft.SharePoint.Administration.SPPersistedObject
      Microsoft.SharePoint.Administration.SPJobDefinition
        Microsoft.Office.Server.UserProfiles.WSSSynchScheduler

Namespace:  Microsoft.Office.Server.UserProfiles
Assembly:  Microsoft.Office.Server (in Microsoft.Office.Server.dll)

Syntax

'Declaration
<GuidAttribute("440A8F8C-A6E0-4add-BA3D-9FD827C88F54")> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
Public Class WSSSynchScheduler _
    Inherits SPJobDefinition
'Usage
Dim instance As WSSSynchScheduler
[GuidAttribute("440A8F8C-A6E0-4add-BA3D-9FD827C88F54")]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
public class WSSSynchScheduler : SPJobDefinition

Remarks

The recommended way to change the schedule is to use the following command:

stsadm –o sync

You must associate job definitions with a service or Web application. A job definition can also be associated with a specific server. For more information about job definitions, see the Microsoft.SharePoint.Administration.SPJobDefinition class in the Welcome to the Windows SharePoint Services 3.0 SDK.

For more information about the different schedule types that are used in job definitions, see the Microsoft.SharePoint.SPSchedule class in the Welcome to the Windows SharePoint Services 3.0 SDK.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

WSSSynchScheduler Members

Microsoft.Office.Server.UserProfiles Namespace