共用方式為


SPFieldLink.PrimaryPITarget property

取得或設定指定的內容類型,然後用來將升級和降級文件屬性的 XML 文件中的主要的處理指示的名稱。

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public Property PrimaryPITarget As String
    Get
    Set
'用途
Dim instance As SPFieldLink
Dim value As String

value = instance.PrimaryPITarget

instance.PrimaryPITarget = value
public string PrimaryPITarget { get; set; }

Property value

Type: System.String
包含的處理指示名稱的字串。

備註

如果您指定此屬性的值,您也必須指定PrimaryPIAttribute屬性的值。

做為PITargetPIAttribute屬性、 PrimaryPITarget和PrimaryPIAttribute屬性搭配使用統一識別中包含文件屬性的值的處理指示屬性的位置。如果設定兩個"主運算",內建的 XML 剖析器會尋找文件屬性先在PrimaryPITargetPrimaryPIAttribute屬性組與所指定的位置。如果沒有在該位置的值,剖析器會使用它,並忽略PITarget和PIAttribute屬性。如果第一個位置包含a null reference (Nothing in Visual Basic)值,剖析器會回復成PITarget和PIAttribute屬性組所指定的次要位置。

如果您指定PrimaryPITarget和PrimaryPIAttribute對的值,您也必須指定PITarget和PIAttribute對的值。

For more information, see Using Content Types to Specify XML Document Properties.

請參閱

參照

SPFieldLink class

SPFieldLink members

Microsoft.SharePoint namespace

PrimaryPIAttribute

其他資源

Using Content Types to Specify XML Document Properties

XMl Parser Processing

FieldRef Element (ContentType)

Fields and Field References