Compartir a través de


View.Name Propiedad

Definición

Obtiene el nombre de la vista.

public:
 property System::String ^ Name { System::String ^ get(); };
public string Name { get; }
member this.Name : string
Public ReadOnly Property Name As String

Valor de propiedad

Ejemplos

En el ejemplo siguiente se usa la propiedad Name del ViewObject objeto para determinar a qué vista ha cambiado el usuario. Si la vista es "Archive Customer" (Archivar cliente), se agrega un valor de nota al documento XML subyacente del formulario:

if (thisXDocument.View.<span class="label">Name</span> == @"Archive Customer")
{
 IXMLDOMNode notes = thisXDocument.DOM.selectSingleNode(@"/Customers/CustomerInfo/Notes");
 IXMLDOMNode div = thisXDocument.DOM.createNode(1, "div", @"http://www.w3.org/1999/xhtml");

 div.text = "Note recorded " + thisXDocument.Util.Date.Now().ToString();
 notes.appendChild(div);
}

Comentarios

Para determinar la vista predeterminada, use la IsDefault propiedad del ViewInfoObject objeto .

Importante: Solo se puede acceder a este miembro mediante formularios que se ejecutan en el mismo dominio que el formulario abierto actualmente o mediante formularios a los que se han concedido permisos entre dominios.

Se aplica a