編輯

共用方式為


Layout Element in Layouts

(SolutionManifestDeclarativeExtensions Schema)

Applies to: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online | SharePoint Server 2013

The Layout element is used to specify the location of the layout file that contains layout information for the external data part.

Namespace: http://schemas.microsoft.com/office/2009/05/BusinessApplications/Manifest/DeclarativeExtensions

Schema: SolutionManifestDeclarativeExtensions

<Layout  DisposeOnContextDeactivation = "Boolean" LayoutFileName = "String" Name = "String" Description = "String"> </Layout>

Elements and attributes

The following sections describe attributes, child elements, and parent elements.

Attributes

Attribute

Description

**DisposeOnContextDeactivation**

Optional.

Determines whether the layout resources should be released when the context is deactivated.

Attribute type: **Boolean**

**LayoutFileName**

Required.

The XML layout file name without the .xml extension.

Attribute type: **String**

**Name**

Required.

The name of the layout.

Attribute type: **String**

**Description**

Optional.

A description

Attribute type: **String**

Child elements

Element Description
Properties Can contain a property named AssociatedActionType to specify the type of action that is associated with this layout. Accepted values are Edit, Create, and ViewDetails.

Parent elements

Element Description
Layouts Element in DeclarativeContextDefinition (SolutionManifestDeclarativeExtensions Schema) The Layouts element that contains this layout.