FeatureDefinition complexType

(AppHostWebFeatures)

注意

该字符串 app 显示为某些元素、属性和文件名的一部分或全部,因为 SharePoint 外接程序最初称为“SharePoint 应用程序”。为确保向后兼容性,架构尚未更改。

类型信息

信息 位置
命名空间 http://schemas.microsoft.com/sharepoint/
架构文件 apphostwebfeatures.xsd
扩展基

定义

    <xs:complexType name="FeatureDefinition">
        <xs:all>
            <xs:element name="ElementManifests" type="ElementManifestReferences" minOccurs="0" maxOccurs="1"></xs:element>
            <xs:element name="Properties" type="FeaturePropertyDefinitions" minOccurs="0" maxOccurs="1"></xs:element>
            <xs:element name="ActivationDependencies" type="FeatureActivationDependencyDefinitions" minOccurs="0" maxOccurs="1"></xs:element>
            <xs:element name="UpgradeActions" type="UpgradeActionsDefinition" minOccurs="0" maxOccurs="1"></xs:element>
        </xs:all>
        <xs:attribute name="Id" type="UniqueIdentifier" use="required" />
        <xs:attribute name="Title" type="LocalizableString" />
        <xs:attribute name="Description" type="LocalizableString" />
        <xs:attribute name="Version" type="FeatureVersion" />
        <xs:attribute name="Scope" type="FeatureScope" use="required" />
        <xs:attribute name="ReceiverAssembly" type="AssemblyStrongName" />
        <xs:attribute name="ReceiverClass" type="AssemblyClass" />
        <xs:attribute name="Creator" type="LocalizableString" />
        <xs:attribute name="DefaultResourceFile" type="xs:string" />
        <xs:attribute name="Hidden" type="TRUEFALSE" />
        <xs:attribute name="SolutionId" type="UniqueIdentifier" />
        <xs:attribute name="ActivateOnDefault" type="TRUEFALSE" />
        <xs:attribute name="AutoActivateInCentralAdmin" type="TRUEFALSE" />
        <xs:attribute name="AlwaysForceInstall" type="TRUEFALSE" />
        <xs:attribute name="RequireResources" type="TRUEFALSE" />
        <xs:attribute name="ImageUrl" type="RelativeFilePath" use="optional" />
        <xs:attribute name="ImageUrlAltText" type="LocalizableString" use="optional" />
        <xs:attribute name="UIVersion" type="UIVersion" />
    </xs:complexType>

元素和属性

如果架构定义了特定要求(如 sequenceminOccursmaxOccurschoice),请参阅定义部分。

子元素

元素

类型

说明

ActivationDependencies

FeatureActivationDependencyDefinitions

ElementManifests

ElementManifestReferences

Properties

FeaturePropertyDefinitions

UpgradeActions

UpgradeActionsDefinition


属性

属性

类型

必需

说明

可能的值

ActivateOnDefault

TRUEFALSE

可选

TRUEFALSE 类型的值。

AlwaysForceInstall

TRUEFALSE

可选

TRUEFALSE 类型的值。

AutoActivateInCentralAdmin

TRUEFALSE

可选

TRUEFALSE 类型的值。

Creator

LocalizableString

可选

LocalizableString 类型的值。

DefaultResourceFile

xs:string

可选

xs:string 类型的值。

说明

LocalizableString

可选

LocalizableString 类型的值。

Hidden

TRUEFALSE

可选

TRUEFALSE 类型的值。

Id

UniqueIdentifier

必需

UniqueIdentifier 类型的值。

ImageUrl

RelativeFilePath

可选

RelativeFilePath 类型的值。

ImageUrlAltText

LocalizableString

可选

LocalizableString 类型的值。

ReceiverAssembly

AssemblyStrongName

可选

AssemblyStrongName 类型的值。

ReceiverClass

AssemblyClass

可选

AssemblyClass 类型的值。

RequireResources

TRUEFALSE

可选

TRUEFALSE 类型的值。

范围

FeatureScope

必需

FeatureScope 类型的值。

SolutionId

UniqueIdentifier

可选

UniqueIdentifier 类型的值。

标题

LocalizableString

可选

LocalizableString 类型的值。

UIVersion

UIVersion

可选

UIVersion 类型的值。

版本

FeatureVersion

可选

FeatureVersion 类型的值。