Поделиться через


CustomActionDefinition complexType

(AppHostWebFeatures)

Примечание.

Строка app отображается как часть или все имена элементов, атрибутов и файлов, так как надстройки SharePoint изначально назывались приложениями для SharePoint. Чтобы обеспечить обратную совместимость, схемы не были изменены.

Сведения о типе

Имя Значение
Namespace http://schemas.microsoft.com/sharepoint/
Файл схемы apphostwebfeatures.xsd
Базовый элемент расширения Отсутствует

Определение

    <xs:complexType name="CustomActionDefinition">
        <xs:all>
            <xs:element name="UrlAction" type="UrlActionDefinition" minOccurs="0" maxOccurs="1"></xs:element>
            <xs:element name="CommandUIExtension" type="CommandUIExtensionType" minOccurs="0" maxOccurs="1"></xs:element>
        </xs:all>
        <xs:attribute name="Description" type="LocalizableString" />
        <xs:attribute name="GroupId" type="xs:string" />
        <xs:attribute name="Id" type="UniqueIdentifier" />
        <xs:attribute name="ImageUrl" type="LocalizableString" />
        <xs:attribute name="Location" type="CustomActionLocations" use="optional" />
        <xs:attribute name="RegistrationType" type="CustomActionRegistrationType" />
        <xs:attribute name="RegistrationId" type="xs:string" />
        <xs:attribute name="RequireSiteAdministrator" type="TRUEFALSE" />
        <xs:attribute name="Rights" type="xs:string" />
        <xs:attribute name="Sequence" type="Sequence" />
        <xs:attribute name="ShowInReadOnlyContentTypes" type="TRUEFALSE" />
        <xs:attribute name="ShowInSealedContentTypes" type="TRUEFALSE" />
        <xs:attribute name="Title" type="LocalizableString" />
        <xs:attribute name="UIVersion" type="UIVersion" />
        <xs:attribute name="HostWebDialog" type="TRUEFALSE" use="optional" />
        <xs:attribute name="HostWebDialogHeight" type="xs:int" use="optional" />
        <xs:attribute name="HostWebDialogWidth" type="xs:int" use="optional" />
    </xs:complexType>

Элементы и атрибуты

Если в схеме определяются конкретные требования, например sequence, minOccurs, maxOccurs и choice, см. раздел определений.

Дочерние элементы

Элемент

Тип

Описание

CommandUIExtension

CommandUIExtensionType

UrlAction

UrlActionDefinition


Атрибуты

Атрибут

Тип

Обязательный

Описание

Возможные значения

Описание

LocalizableString

необязательный

Значения типа LocalizableString.

GroupId

xs:string

необязательный

Значения типа xs:string.

HostWebDialog

TRUEFALSE

необязательный

Значения типа TRUEFALSE.

HostWebDialogHeight

xs:int

необязательный

Значения типа xs:int.

HostWebDialogWidth

xs:int

необязательный

Значения типа xs:int.

Id

Uniqueidentifier

необязательный

Значения типа UniqueIdentifier.

Imageurl

LocalizableString

необязательный

Значения типа LocalizableString.

Расположение

CustomActionLocations

необязательный

Значения типа CustomActionLocations.

RegistrationId

xs:string

необязательный

Значения типа xs:string.

RegistrationType

CustomActionRegistrationType

необязательный

Значения типа CustomActionRegistrationType.

RequireSiteAdministrator

TRUEFALSE

необязательный

Значения типа TRUEFALSE.

Rights

xs:string

необязательный

Значения типа xs:string.

Sequence

Sequence

необязательный

Значения типа Sequence.

ShowInReadOnlyContentTypes

TRUEFALSE

необязательный

Значения типа TRUEFALSE.

ShowInSealedContentTypes

TRUEFALSE

необязательный

Значения типа TRUEFALSE.

Название

LocalizableString

необязательный

Значения типа LocalizableString.

UIVersion

UIVersion

необязательный

Значения типа UIVersion.