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 (in Microsoft.Office.Server.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.String
The 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. For a code example about how to set the privacy policy of a property, see How to: Set Privacy Policies for User Profile Properties.