Compartir a través de


FeatureDefinition complexType

(AppHostWebFeatures)

Nota:

La cadena app aparece como parte de o todos los nombres de elemento, atributo y archivo porque los complementos de SharePoint se denominaron originalmente "aplicaciones para SharePoint". Para garantizar la compatibilidad con versiones anteriores, no se han cambiado los esquemas.

Información de tipos

Información Ubicación
Namespace http://schemas.microsoft.com/sharepoint/
Archivo de esquema apphostwebfeatures.xsd
Base de extensión Ninguno

Definición

    <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>

Elementos y atributos

Si el esquema define requisitos específicos, como sequence, minOccurs, maxOccurs y choice, consulte la sección de definición.

Elementos secundarios

Elemento

Tipo

Descripción

ActivationDependencies

FeatureActivationDependencyDefinitions

ElementManifests

ElementManifestReferences

Propiedades

FeaturePropertyDefinitions

UpgradeActions

UpgradeActionsDefinition


Atributos

Atributo

Tipo

Obligatorio

Descripción

Posibles valores

ActivateOnDefault

TRUEFALSE

opcional

Valores del tipo TRUEFALSE.

AlwaysForceInstall

TRUEFALSE

opcional

Valores del tipo TRUEFALSE.

AutoActivateInCentralAdmin

TRUEFALSE

opcional

Valores del tipo TRUEFALSE.

Creator

LocalizableString

opcional

Valores del tipo LocalizableString.

DefaultResourceFile

xs:string

opcional

Valores del tipo xs:string.

Descripción

LocalizableString

opcional

Valores del tipo LocalizableString.

Hidden

TRUEFALSE

opcional

Valores del tipo TRUEFALSE.

Id

Uniqueidentifier

necesario

Valores del tipo UniqueIdentifier.

Imageurl

RelativeFilePath

opcional

Valores del tipo RelativeFilePath.

ImageUrlAltText

LocalizableString

opcional

Valores del tipo LocalizableString.

ReceiverAssembly

AssemblyStrongName

opcional

Valores del tipo AssemblyStrongName.

ReceiverClass

AssemblyClass

opcional

Valores del tipo AssemblyClass.

RequireResources

TRUEFALSE

opcional

Valores del tipo TRUEFALSE.

Ámbito

FeatureScope

necesario

Valores del tipo FeatureScope.

SolutionId

Uniqueidentifier

opcional

Valores del tipo UniqueIdentifier.

Cargo

LocalizableString

opcional

Valores del tipo LocalizableString.

UIVersion

UIVersion

opcional

Valores del tipo UIVersion.

Versión

FeatureVersion

opcional

Valores del tipo FeatureVersion.