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参数要求使用UpdateDriver方法,如果要更改的GetChanges方法。下面的代码段演示如何使用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 权限
权限 |
说明 |
---|---|
允许用户创建项目组合分析的项目驱动因素。全局权限。 |