PrivacyPolicyItem Class

Provides methods and properties to add, delete, retrieve, set, change, and manage a privacy policy item.

Inheritance Hierarchy

System.Object
  Microsoft.Office.Server.UserProfiles.PrivacyPolicyItem

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.LinkDemand, ObjectModel := True)> _
Public Class PrivacyPolicyItem _
    Implements IPrivacyPolicyItem
'Usage
Dim instance As PrivacyPolicyItem
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public class PrivacyPolicyItem : IPrivacyPolicyItem

Remarks

The privacy policy specifies whether providing a value for a property is mandatory, disabled, or optional. Privacy policy is applicable only to user profile properties.

For more information about privacy policies, see Privacy Policies and Writing Policy-Compliant Code. For a code example about how to set the privacy policy of a property, see How to: Set Privacy Policies for User Profile Properties.

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

PrivacyPolicyItem Members

Microsoft.Office.Server.UserProfiles Namespace