SPWeb.AllowUnsafeUpdates 属性
Gets or sets a Boolean value that specifies whether to allow updates to the database as a result of a GET request or without requiring a security validation.
命名空间: Microsoft.SharePoint
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Property AllowUnsafeUpdates As Boolean
Get
Set
用法
Dim instance As SPWeb
Dim value As Boolean
value = instance.AllowUnsafeUpdates
instance.AllowUnsafeUpdates = value
public bool AllowUnsafeUpdates { get; set; }
属性值
类型:System.Boolean
true if unsafe updates are allowed; otherwise, false.
备注
警告
Setting this property to true opens security risks, potentially introducing cross-site scripting vulnerabilities.