PropertyIsPrivateException 类
表示当用户尝试另一个用户的配置文件上的私有属性的值更改,而又没有管理人员的权限时引发的异常。
继承层次结构
System.Object
System.Exception
Microsoft.Office.Server.UserProfiles.UserProfileException
Microsoft.Office.Server.UserProfiles.PropertyIsPrivateException
命名空间: Microsoft.Office.Server.UserProfiles
程序集: Microsoft.Office.Server.UserProfiles(位于 Microsoft.Office.Server.UserProfiles.dll 中)
语法
声明
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public Class PropertyIsPrivateException _
Inherits UserProfileException
用法
Dim instance As PropertyIsPrivateException
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public class PropertyIsPrivateException : UserProfileException
备注
只有用户或具有相应权限的管理员可以更新用户配置文件上的私有属性值。
线程安全性
该类型的任何公共 静态 (已共享 在 Visual Basic 中) 成员都是线程安全的。不保证任何实例成员都是线程安全的。