CustomActionDefinition complexType
(AppHostWebFeatures)
注意
该字符串 app
显示为某些元素、属性和文件名的一部分或全部,因为 SharePoint 外接程序最初称为“SharePoint 应用程序”。为确保向后兼容性,架构尚未更改。
类型信息
名称 | 值 |
---|---|
命名空间 | 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),请参阅定义部分。
子元素
元素 |
类型 |
说明 |
---|---|---|
属性
属性 |
类型 |
必需 |
说明 |
可能的值 |
---|---|---|---|---|
说明 |
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 类型的值。 |
||
RegistrationId |
xs:string |
可选 |
xs:string 类型的值。 |
|
RegistrationType |
可选 |
CustomActionRegistrationType 类型的值。 |
||
RequireSiteAdministrator |
TRUEFALSE |
可选 |
TRUEFALSE 类型的值。 |
|
Rights |
xs:string |
可选 |
xs:string 类型的值。 |
|
序列 |
序列 |
可选 |
序列类型的值。 |
|
ShowInReadOnlyContentTypes |
TRUEFALSE |
可选 |
TRUEFALSE 类型的值。 |
|
ShowInSealedContentTypes |
TRUEFALSE |
可选 |
TRUEFALSE 类型的值。 |
|
标题 |
LocalizableString |
可选 |
LocalizableString 类型的值。 |
|
UIVersion |
可选 |
UIVersion 类型的值。 |