Partilhar via


Método Project.ReadWssData (Project)

Retorna as URLs do Espaço de Trabalho do Projeto do projeto da empresa ativo como uma cadeia de caracteres XML.

Sintaxe

expression. ReadWssData( _ProjectGuid_ )

Expressão Uma variável que representa um objeto Project .

Parâmetros

Nome Obrigatório/Opcional Tipo de dados Descrição
ProjectGuid Obrigatório String Um GUID válido do Projeto.

Valor de retorno

Variantes

Exemplo

A seguir, um exemplo de definição de esquema XML.

<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:mstns="http://schemas.microsoft.com/office/project/server/webservices/ProjectWSSInfoDataSet/" 
           xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" 
           xmlns="http://schemas.microsoft.com/office/project/server/webservices/ProjectWSSInfoDataSet/" 
           attributeFormDefault="qualified" elementFormDefault="qualified" 
           targetNamespace="http://schemas.microsoft.com/office/project/server/webservices/ProjectWSSInfoDataSet/" 
           id="ProjectWSSInfoDataSet" xmlns:xs="https://www.w3.org/2001/XMLSchema">
  <xs:element msdata:IsDataSet="true" msdata:UseCurrentLocale="true" name="ProjectWSSInfoDataSet">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="ProjWssInfo">
          <xs:complexType>
            <xs:sequence>
              <xs:element msdata:DataType="System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" 
                          name="WSS_SERVER_UID" type="xs:string" />
              <xs:element msdata:DataType="System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" 
                          minOccurs="0" name="PROJECT_UID" type="xs:string" />
              <xs:element minOccurs="0" name="PROJECT_WORKSPACE_URL" type="xs:string" />
              <xs:element minOccurs="0" name="PROJECT_ISSUES_URL" type="xs:string" />
              <xs:element minOccurs="0" name="PROJECT_RISKS_URL" type="xs:string" />
              <xs:element minOccurs="0" name="PROJECT_DOCUMENTS_URL" type="xs:string" />
              <xs:element minOccurs="0" name="PROJECT_WORKSPACE_NAME" type="xs:string" />
              <xs:element minOccurs="0" name="PROJECT_WORKSPACE_VSERVER_URL" type="xs:string" />
              <xs:element minOccurs="0" name="PROJECT_NAME" type="xs:string" />
              <xs:element minOccurs="0" name="PROJECT_COMMITMENTS_URL" type="xs:string" />
              <xs:element minOccurs="0" name="WSS_PWA_ADMIN_ROLE_ID" type="xs:int" />
              <xs:element minOccurs="0" name="WSS_PWA_PROJECT_MANAGER_ROLE_ID" type="xs:int" />
              <xs:element minOccurs="0" name="WSS_PWA_TEAM_MEMBER_ROLE_ID" type="xs:int" />
              <xs:element minOccurs="0" name="WSS_PWA_READER_ROLE_ID" type="xs:int" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique msdata:PrimaryKey="true" name="Constraint1">
      <xs:selector xpath=".//mstns:ProjWssInfo" />
      <xs:field xpath="mstns:WSS_SERVER_UID" />
    </xs:unique>
  </xs:element>
</xs:schema>

Suporte e comentários

Tem dúvidas ou quer enviar comentários sobre o VBA para Office ou sobre esta documentação? Confira Suporte e comentários sobre o VBA para Office a fim de obter orientação sobre as maneiras pelas quais você pode receber suporte e fornecer comentários.