UserSyncSettings Enumeration
Specifies the synchronization settings for a Project Server user.
This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
Namespace: [Admin Web service]
Service reference: http://ServerName:32843/[Project Service Application GUID]/PSI/Admin.svc
Web service reference: http://ServerName/ProjectServerName/_vti_bin/PSI/Admin.asmx?wsdl
Syntax
'Declaration
<SerializableAttribute> _
<FlagsAttribute> _
Public Enumeration UserSyncSettings
'Usage
Dim instance As UserSyncSettings
[SerializableAttribute]
[FlagsAttribute]
public enum UserSyncSettings
Members
Member name | Description | |
---|---|---|
Enabled | Value=1. Enable all synchronizations. | |
DisablePWA | Value=2. Disable synchronization with Project Web App. | |
DisablePWS | Value=4. Disable synchronization with project sites for the user. | |
DisableEmailSync | Value=8. Disable email synchronization. | |
DisableAll | Value=16. Disable all synchronizations. |
Remarks
The UserSyncSettings enumeration allows a bitwise combination of its member values.
Examples
The following code snippet can be used with the UpdateUserSyncSetting(UserSyncSettings) method to disable synchronization with email and project sites. SvcAdmin is the namespace of the Admin service in the ProjectServerServices.dll assembly.
int syncSettings = (int)SvcAdmin.UserSyncSettings.DisableEmailSync
| (int)SvcAdmin.UserSyncSettings.DisablePWS;
Console.WriteLine("SyncSettings = {0}", syncSettings.ToString());
The output of the code is: SyncSettings = 12