다음을 통해 공유


PropertyIsPrivateException Class

Represents an exception that is thrown when a user attempts to change the value of a private property on a profile of another user and does not have the right to manage people.

Inheritance Hierarchy

System.Object
  System.Exception
    Microsoft.Office.Server.UserProfiles.UserProfileException
      Microsoft.Office.Server.UserProfiles.PropertyIsPrivateException

Namespace:  Microsoft.Office.Server.UserProfiles
Assembly:  Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
Public Class PropertyIsPrivateException _
    Inherits UserProfileException
'Usage
Dim instance As PropertyIsPrivateException
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
public class PropertyIsPrivateException : UserProfileException

Remarks

Only the user or an administrator with proper rights can update private property values on user profiles.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

PropertyIsPrivateException Members

Microsoft.Office.Server.UserProfiles Namespace