Compartir a través de


del método LookupTable.ReadLookupTablesMultiLangByUids

Obtiene las tablas de búsqueda en varios idiomas y las máscaras de código correspondiente de la 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/ReadLookupTablesMultiLangByUids", 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 ReadLookupTablesMultiLangByUids ( _
    ltUidList As Guid(), _
    autoCheckOut As Boolean _
) As LookupTableMultiLangDataSet
'Uso
Dim instance As LookupTable
Dim ltUidList As Guid()
Dim autoCheckOut As Boolean
Dim returnValue As LookupTableMultiLangDataSet

returnValue = instance.ReadLookupTablesMultiLangByUids(ltUidList, _
    autoCheckOut)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/office/project/server/webservices/LookupTable/ReadLookupTablesMultiLangByUids", 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 LookupTableMultiLangDataSet ReadLookupTablesMultiLangByUids(
    Guid[] ltUidList,
    bool autoCheckOut
)

Parámetros

  • ltUidList
    Tipo: []

    Matriz de GUID de tabla de búsqueda de varios idiomas.

  • autoCheckOut
    Tipo: System.Boolean

    Si es true, desprotege automáticamente las tablas de búsqueda especificado para su edición.

Valor devuelto

Tipo: WebSvcLookupTable.LookupTableMultiLangDataSet

Comentarios

To create a multilanguage lookup table for test purposes, see the example in CreateLookupTablesMultiLang or see the LookupTables section in 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

LogOn

Permite al usuario iniciar sesión en Project Server. Permiso global.

Ejemplos

In the following code fragment, ReadOneMultiLangLUT 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 ReadOneMultiLangLUT (Guid lutUid)
{
    LookupTableWS.LookupTableMultiLangDataSet lutMultiLang =
        new LookupTableWS.LookupTableMultiLangDataSet();

    if (lutUid == Guid.Empty)
        lutUid = new Guid("1796cacc-5406-4c93-80cb-e7fb1271d32a");
    Guid[] lutUids = { lutUid };

    lutMultiLang = lookupTable.ReadLookupTablesMultiLangByUids(lutUids, false);
    string xmlFile = @"C:\Project\DataSets\MultilanguageLookupTableDataSet.xml";
    SaveDataSetToXml(lutMultiLang, xmlFile);
}
// Save the DataSet for examination.
private void SaveDataSetToXml(DataSet ds, string filePathName)
{
    ds.WriteXml(filePathName);
}

Vea también

Referencia

clase LookupTable

Miembros LookupTable

Espacio de nombres WebSvcLookupTable