PrivacyPolicyManager.Item Property (String)
Gets a privacy policy item by using the user profile property name.
Namespace: Microsoft.Office.Server.UserProfiles
Assembly: Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)
Syntax
'Declaration
Public ReadOnly Default Property Item ( _
profilePropertyName As String _
) As IPrivacyPolicyItem
Get
'Usage
Dim instance As PrivacyPolicyManager
Dim profilePropertyName As String
Dim value As IPrivacyPolicyItem
value = instance(profilePropertyName)
public IPrivacyPolicyItem this[
string profilePropertyName
] { get; }
Parameters
profilePropertyName
Type: System.StringThe user profile property name.
Property Value
Type: Microsoft.Office.Server.UserProfiles.IPrivacyPolicyItem
The IPrivacyPolicyItem object.
Remarks
To quickly access the policy unique identifiers (IDs) included in Microsoft Office SharePoint Server 2007, use the PrivacyPolicyIdConstants class.
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.