다음을 통해 공유


PropertyData.Privacy Property

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

Namespace:  [UserProfileService Web service]
Web service reference: http://Site/_vti_bin/UserProfileService.asmx

Syntax

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

value = instance.Privacy

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

Property Value

Type: [UserProfileService Web service].Privacy
The privacy level of the user profile property.

Remarks

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:

  • Private (only the user)

  • Manager (the user and the user’s manager)

  • Organization (the user’s organization)

  • Contacts (the user’s contacts)

  • Public (everyone)

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

UserProfileService Web Service