PrivacyPolicyItem PrivacyPolicyItem PrivacyPolicyItem Class

Definition

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

public ref class PrivacyPolicyItem : Microsoft::Office::Server::UserProfiles::IPrivacyPolicyItem
public class PrivacyPolicyItem : Microsoft.Office.Server.UserProfiles.IPrivacyPolicyItem
Public Class PrivacyPolicyItem
Implements IPrivacyPolicyItem
Inheritance
PrivacyPolicyItemPrivacyPolicyItemPrivacyPolicyItem
Implements

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.

Properties

AllowPolicyOverride AllowPolicyOverride AllowPolicyOverride

Returns a Boolean value that specifies whether a privacy policy item is allowed to be overridden.

DefaultPrivacy DefaultPrivacy DefaultPrivacy

Gets and sets the default privacy policy for the privacy policy item.

DisplayName DisplayName DisplayName

Gets and sets the display name of the privacy policy item.

FilterPrivacyItems FilterPrivacyItems FilterPrivacyItems

Returns a Boolean value that specifies whether privacy policy items can be filtered.

Group Group Group

Gets and sets the group for the privacy policy item.

Id Id Id

Gets the globally unique identifier (GUID) of the privacy policy item.

Parent Parent Parent

Gets the parent of the privacy policy item.

PrivacyPolicy PrivacyPolicy PrivacyPolicy

Gets or sets the privacy policy.

UserOverridePrivacy UserOverridePrivacy UserOverridePrivacy

Returns a Boolean value that specifies whether a user can change the privacy level to a level that is different than the default privacy policy level.

Methods

Commit() Commit() Commit()

Commits changes made to a privacy policy item.

Delete() Delete() Delete()

Deletes the privacy policy item.

Extension Methods

ToJson(Object) ToJson(Object) ToJson(Object)

Applies to