Rediger

Driver.UpdateDriver(DriverDataSet) Method

Definition

Updates a business strategy driver.

public:
 WebSvcDriver::DriverDataSet ^ UpdateDriver(WebSvcDriver::DriverDataSet ^ dsDriver);
[System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/office/project/server/webservices/Driver/UpdateDriver", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, RequestNamespace="http://schemas.microsoft.com/office/project/server/webservices/Driver/", ResponseNamespace="http://schemas.microsoft.com/office/project/server/webservices/Driver/", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
public WebSvcDriver.DriverDataSet UpdateDriver(WebSvcDriver.DriverDataSet dsDriver);
member this.UpdateDriver : WebSvcDriver.DriverDataSet -> WebSvcDriver.DriverDataSet
Public Function UpdateDriver (dsDriver As DriverDataSet) As DriverDataSet

Parameters

dsDriver
DriverDataSet

Contains changes to make in one driver.

Returns

Contains the revised driver information.

Attributes

Remarks

The dsDriver argument requires use of the GetChanges method for the UpdateDriver method to make a change. The following code snippet shows how to use dsDriver.

DriverWebSvc.Driver driverWS = new DriverWebSvc.Driver();
driverWS.Url = "http://<span class="placeholder">ServerName</span>/<span class="placeholder">ProjectServerName</span>/_vti_bin/PSI/Driver.asmx";
driverWS.Credentials = CredentialCache.DefaultCredentials;

// Get the list of drivers.
DriverWebSvc.DriverDataSet ds = driverWS.ReadDriverList();

ds.Tables[ds.Driver.TableName].Rows[0][ds.Driver.DRIVER_NAMEColumn] = "NewDriverName";

driverWS.UpdateDriver((DriverWebSvc.DriverDataSet)ds.<span class="label">GetChanges</span>());

// Verify the name change.
ds = driverWS.ReadDriverList();

Project Server Permissions

ManageDrivers Allows a user to create drivers for project portfolio analyses. Global permission.

Applies to