Admin.UpdateUserSyncSetting-Methode
Aktualisiert die Einstellung für die Synchronisierung mit Project Web App, Projektwebsites und e-Mail.
Namespace: WebSvcAdmin
Assembly: ProjectServerServices (in ProjectServerServices.dll)
Syntax
'Declaration
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/office/project/server/webservices/Admin/UpdateUserSyncSetting", RequestNamespace := "https://schemas.microsoft.com/office/project/server/webservices/Admin/", _
ResponseNamespace := "https://schemas.microsoft.com/office/project/server/webservices/Admin/", _
Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Sub UpdateUserSyncSetting ( _
userSyncSetting As UserSyncSettings _
)
'Usage
Dim instance As Admin
Dim userSyncSetting As UserSyncSettings
instance.UpdateUserSyncSetting(userSyncSetting)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/office/project/server/webservices/Admin/UpdateUserSyncSetting", RequestNamespace = "https://schemas.microsoft.com/office/project/server/webservices/Admin/",
ResponseNamespace = "https://schemas.microsoft.com/office/project/server/webservices/Admin/",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public void UpdateUserSyncSetting(
UserSyncSettings userSyncSetting
)
Parameter
userSyncSetting
Typ: WebSvcAdmin.UserSyncSettingsEine oder mehrere Benutzer aufgelisteten Einstellungen für die Synchronisierung
Hinweis
Verwenden Sie Microsoft.Office.Project.Server.Library.Admin.UserSyncSettings für die ordnungsgemäße Enumeration-Werte.
Hinweise
Project Server-Berechtigungen
Berechtigung |
Beschreibung |
---|---|
Ermöglicht einen Benutzer das Projektwebsite verwalten. Die globale Berechtigung. |
Beispiele
The following example shows the use of the UpdateUserSyncSettings method. It disables synchronization with project sites for the application user. SvcAdmin is the namespace of the Admin service in the ProjectServerServices.dll proxy assembly. For information about creating a PSI proxy assembly and an app.config file, see Prerequisites for WCF-Based Code Samples.
using System;
using System.Text;
using PSLibrary = Microsoft.Office.Project.Server Library;
namespace Microsoft.SDK.Project.Samples.UpdateUserSyncSetting
{
class Program
{
private const string ENDPOINT = "basicHttp_Admin";
private static SvcAdmin.AdminClient adminClient;
static void Main(string[] args)
{
ConfigClientEndpoints(ENDPOINT);
int syncSettings = (int)PSLibrary.Admin.UserSyncSettings.DisablePWS;
Console.WriteLine("SyncSettings value: {0}", syncSettings.ToString());
adminClient.UpdateUserSyncSetting((PSLibrary.Admin.UserSyncSettings)syncSettings);
Console.Write("\nPress any key to exit... ");
Console.ReadKey(true);
}
// Use the endpoints that are defined in app.config to configure the client.
public static void ConfigClientEndpoints(string endpt)
{
adminClient = new SvcAdmin.AdminClient(endpt);
}
}
}
Ist die Konsolenausgabe: SyncSettings = 12