共用方式為


SPFieldLink.ReadOnly property

取得並設定一個值,指出是否可以修改SPFieldLink物件。

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

Syntax

'宣告
Public Property ReadOnly As Boolean
    Get
    Set
'用途
Dim instance As SPFieldLink
Dim value As Boolean

value = instance.ReadOnly

instance.ReadOnly = value
public bool ReadOnly { get; set; }

Property value

Type: System.Boolean
true欄位參照是唯讀的 ; 如果否則,請false。預設值為false。

備註

當此屬性的值為true時, SPFieldLink物件沒有其他屬性可進行更新,直接或間接的方式。(此例外是您一律可修改本身ReadOnly屬性的值)。例如, ReadOnly屬性的值為true ,可防止直接存取的 XML 文件剖析器時就會嘗試降級文件庫中的資料行至文件中屬性的值。此設定,也可避免間接存取,例如上層內容類型中的變更傳播至子內容類型時。

請參閱

參照

SPFieldLink class

SPFieldLink members

Microsoft.SharePoint namespace

其他資源

Fields and Field References

XML Document Property Promotion and Demotion

Updating Child Content Types