PropertyData.Privacy Property

Gets or sets the privacy level of the user profile property.

Web Service: User ProfileWeb Reference: http://<Site>/_vti_bin/UserProfileService.asmx

Syntax

'Declaration
Public Property Privacy As Privacy
'Usage
Dim instance As PropertyData
Dim value As Privacy

value = instance.Privacy

instance.Privacy = value
public Privacy Privacy { get; set; }

Property Value

The privacy level of the user profile property.

Remarks

For a code example about how to use the PropertyData class, see How to: Modify User Profile Data.

All user profile properties and most of the My Site features such as Memberships, Colleagues, and Links have privacy policies that restrict who can view them.

Using policies, you can set the restriction level of who can access and view the profile properties and features to:

  • You only (Private)

  • Your manager (Manager)

  • Your workgroup (Organization)

  • Your colleagues (Contacts)

  • Everyone (Public)

For more information about privacy policies, see Privacy Policies. 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

Reference

PropertyData Class
PropertyData Members
User Profile Web Service