del método LookupTable.ReadLookupTablesByUids
Obtiene las tablas de búsqueda y las máscaras de código correspondientes para obtener una lista de GUID de tabla de búsqueda especificada.
Espacio de nombres: WebSvcLookupTable
Ensamblado: ProjectServerServices (en ProjectServerServices.dll)
Sintaxis
'Declaración
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/office/project/server/webservices/LookupTable/ReadLookupTablesByUids", RequestNamespace := "https://schemas.microsoft.com/office/project/server/webservices/LookupTable/", _
ResponseNamespace := "https://schemas.microsoft.com/office/project/server/webservices/LookupTable/", _
Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function ReadLookupTablesByUids ( _
ltUidList As Guid(), _
autoCheckOut As Boolean, _
language As Integer _
) As LookupTableDataSet
'Uso
Dim instance As LookupTable
Dim ltUidList As Guid()
Dim autoCheckOut As Boolean
Dim language As Integer
Dim returnValue As LookupTableDataSet
returnValue = instance.ReadLookupTablesByUids(ltUidList, _
autoCheckOut, language)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/office/project/server/webservices/LookupTable/ReadLookupTablesByUids", RequestNamespace = "https://schemas.microsoft.com/office/project/server/webservices/LookupTable/",
ResponseNamespace = "https://schemas.microsoft.com/office/project/server/webservices/LookupTable/",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public LookupTableDataSet ReadLookupTablesByUids(
Guid[] ltUidList,
bool autoCheckOut,
int language
)
Parámetros
ltUidList
Tipo: []Matriz de GUID de tabla de búsqueda.
autoCheckOut
Tipo: System.BooleanSi true, Desproteger para realizar cambios.
language
Tipo: System.Int32Identificador de configuración regional (LCID).
Valor devuelto
Tipo: WebSvcLookupTable.LookupTableDataSet
Comentarios
To create a lookup table for test purposes, see Walkthrough: Creating a Hierarchical Lookup Table or see Using the ProjTool Test Application.
Advertencia
Crear tablas de búsqueda de prueba en una instalación de prueba de Project Server.
Permisos de Project Server
Permiso |
Descripción |
---|---|
Permite al usuario iniciar sesión en Project Server. Permiso global. |
Ejemplos
In the following code fragment, the ReadOneLUT method reads a lookup table specified by the lutUid parameter. LookupTableWS is an arbitrary name for a reference to the LookupTable Web service. To test the code, add it to a sample console application. For more information, see Prerequisites for ASMX-Based Code Samples.
using PSLibrary = Microsoft.Office.Project.Server.Library;
. . .
private const string LOOKUPTABLEWEBSERVICE = "_vti_bin/PSI/LookupTable.asmx";
private string baseUrl = "https://ServerName/ProjectServerName/";
private static LookupTableWS.LookupTable lookupTable =
new LookupTableWS.LookupTable();
// Initialize the LookupTable Web service for Windows logon.
lookupTable.Url = baseUrl + LOOKUPTABLEWEBSERVICE;
lookupTable.Credentials = CredentialCache.DefaultCredentials;
. . .
private void ReadOneLUT (Guid lutUid)
{
LookupTableWS.LookupTableDataSet lut =
new LookupTableWS.LookupTableDataSet ();
if (lutUid == Guid.Empty)
lutUid = new Guid("23bdb945-eacc-4390-af70-f8644683c5bb");
Guid[] lutUids = { lutUid };
lut = lookupTable.ReadLookupTablesByUids(lutUids, false);
string xmlFile = @"C:\Project\DataSets\HealthTrendsLookupTableDataSet.xml";
SaveDataSetToXml(lut, xmlFile);
}
// Save the DataSet for examination.
private void SaveDataSetToXml(DataSet ds, string filePathName)
{
ds.WriteXml(filePathName);
}
Vea también
Referencia
Espacio de nombres WebSvcLookupTable