共用方式為


SPSite.AllowUnsafeUpdates property

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

Syntax

'宣告
Public Property AllowUnsafeUpdates As Boolean
    Get
    Set
'用途
Dim instance As SPSite
Dim value As Boolean

value = instance.AllowUnsafeUpdates

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

Property value

Type: System.Boolean
true如果允許不安全的更新 ;否則, false。

備註

這個屬性設定為true開啟的安全性風險,便有可能造成跨網站指令碼的弱點。

請參閱

參照

SPSite class

SPSite members

Microsoft.SharePoint namespace