ComplexType FeatureDefinition
(AppHostWebFeatures)
Notes
La chaîne s’affiche sous la forme d’un élément, d’un attribut et d’un nom de fichier, ou de tous, car les SharePoint de fichiers étaient à l’origine appelés « applications pour app SharePoint ». Pour garantir la compatibilité descendante, les schémas n’ont pas été modifiés.
Informations sur le type
| Namespace | http://schemas.microsoft.com/sharepoint/ |
| Fichier de schéma | apphostwebfeatures.xsd |
| Base d’extension | Aucun |
Définition
<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>
Éléments et attributs
Si le schéma définit des exigences spécifiques, telles que séquence, minOccurs, maxOccurs et choix, voir la section de définition.
Éléments enfants
Élément |
Type |
Description |
|---|---|---|
Attributs
Attribut |
Type |
Requis |
Description |
Valeurs possibles |
|---|---|---|---|---|
ActivateOnDefault |
TRUEFALSE |
facultatif |
Valeurs du type TRUEFALSE. |
|
AlwaysForceInstall |
TRUEFALSE |
facultatif |
Valeurs du type TRUEFALSE. |
|
AutoActivateInCentralAdmin |
TRUEFALSE |
facultatif |
Valeurs du type TRUEFALSE. |
|
Creator |
LocalizableString |
facultatif |
Valeurs du type LocalizableString. |
|
DefaultResourceFile |
xs:string |
facultatif |
Valeurs du type xs:string. |
|
Description |
LocalizableString |
facultatif |
Valeurs du type LocalizableString. |
|
Hidden |
TRUEFALSE |
facultatif |
Valeurs du type TRUEFALSE. |
|
ID |
UniqueIdentifier |
obligatoire |
Valeurs du type UniqueIdentifier. |
|
ImageUrl |
RelativeFilePath |
facultatif |
Valeurs du type RelativeFilePath. |
|
ImageUrlAltText |
LocalizableString |
facultatif |
Valeurs du type LocalizableString. |
|
ReceiverAssembly |
AssemblyStrongName |
facultatif |
Valeurs du type AssemblyStrongName. |
|
ReceiverClass |
AssemblyClass |
facultatif |
Valeurs du type AssemblyClass. |
|
RequireResources |
TRUEFALSE |
facultatif |
Valeurs du type TRUEFALSE. |
|
Portée |
obligatoire |
Valeurs du type FeatureScope. |
||
SolutionId |
UniqueIdentifier |
facultatif |
Valeurs du type UniqueIdentifier. |
|
Titre |
LocalizableString |
facultatif |
Valeurs du type LocalizableString. |
|
UIVersion |
facultatif |
Valeurs du type UIVersion. |
||
Version |
facultatif |
Valeurs du type FeatureVersion. |