PrivacyPolicy enumeration

Defines the privacy policy for whatever a user is applying to.

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


Public Enumeration PrivacyPolicy
Dim instance As PrivacyPolicy
public enum PrivacyPolicy


Member name Description
Mandatory Makes it a requirement that the user fill in a value.
OptIn Opt-in to provide a privacy policy value for a property.
OptOut Opt-out from providing a privacy policy value for a property.
Disabled Turns off the feature and hides all related user interface.


For example, users can set privacy policy to properties such as a user profile property and "My Colleagues."

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.

See also


Microsoft.Office.Server.UserProfiles namespace