Метод Driver.UpdateDriver
Обновляет бизнес-фактора стратегии.
Пространство имен: WebSvcDriver
Сборка: ProjectServerServices (в ProjectServerServices.dll)
Синтаксис
'Декларация
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/office/project/server/webservices/Driver/UpdateDriver", RequestNamespace := "https://schemas.microsoft.com/office/project/server/webservices/Driver/", _
ResponseNamespace := "https://schemas.microsoft.com/office/project/server/webservices/Driver/", _
Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function UpdateDriver ( _
dsDriver As DriverDataSet _
) As DriverDataSet
'Применение
Dim instance As Driver
Dim dsDriver As DriverDataSet
Dim returnValue As DriverDataSet
returnValue = instance.UpdateDriver(dsDriver)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/office/project/server/webservices/Driver/UpdateDriver", RequestNamespace = "https://schemas.microsoft.com/office/project/server/webservices/Driver/",
ResponseNamespace = "https://schemas.microsoft.com/office/project/server/webservices/Driver/",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public DriverDataSet UpdateDriver(
DriverDataSet dsDriver
)
Параметры
dsDriver
Тип: WebSvcDriver.DriverDataSetСодержит изменения, чтобы сделать в один драйвер.
Возвращаемое значение
Тип: WebSvcDriver.DriverDataSet
Содержит сведения, оптимизированная драйвер.
Замечания
Аргумент dsDriver необходимо использовать метод GetChanges для метода UpdateDriver для внесения изменений. В следующем фрагменте кода показано, как использовать dsDriver.
DriverWebSvc.Driver driverWS = new DriverWebSvc.Driver();
driverWS.Url = "https://ServerName/ProjectServerName/_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.GetChanges());
// Verify the name change.
ds = driverWS.ReadDriverList();
Разрешения Project Server
Разрешение |
Описание |
---|---|
Позволяет пользователю создавать драйверы для проекта анализа портфеля. Глобальное разрешение. |