PrivacyPolicyManager.Item[String, String] PrivacyPolicyManager.Item[String, String] PrivacyPolicyManager.Item[String, String] Property

Definition

Overloads

Item[Guid] Item[Guid] Item[Guid]

Gets a privacy policy item by using the globally unique identifier (GUID) of the policy for the item.

Item[String] Item[String] Item[String]

Gets a privacy policy item by using the user profile property name.

Item[String, String] Item[String, String] Item[String, String]

Item[Guid] Item[Guid] Item[Guid]

Gets a privacy policy item by using the globally unique identifier (GUID) of the policy for the item.

public:
 property Microsoft::Office::Server::UserProfiles::IPrivacyPolicyItem ^ default[Guid] { Microsoft::Office::Server::UserProfiles::IPrivacyPolicyItem ^ get(Guid policyId); };
public Microsoft.Office.Server.UserProfiles.IPrivacyPolicyItem this[Guid policyId] { get; }
Default Public ReadOnly Property Item(policyId As Guid) As IPrivacyPolicyItem
Parameters
policyId
Guid Guid Guid

The globally unique identifier (GUID) of the policy for the item.

Property Value

Remarks

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.

Item[String] Item[String] Item[String]

Gets a privacy policy item by using the user profile property name.

public:
 property Microsoft::Office::Server::UserProfiles::IPrivacyPolicyItem ^ default[System::String ^] { Microsoft::Office::Server::UserProfiles::IPrivacyPolicyItem ^ get(System::String ^ profilePropertyName); };
public Microsoft.Office.Server.UserProfiles.IPrivacyPolicyItem this[string profilePropertyName] { get; }
Default Public ReadOnly Property Item(profilePropertyName As String) As IPrivacyPolicyItem
Parameters
profilePropertyName
String String String

The user profile property name.

Property Value

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.

Item[String, String] Item[String, String] Item[String, String]

public:
 property Microsoft::Office::Server::UserProfiles::IPrivacyPolicyItem ^ default[System::String ^, System::String ^] { Microsoft::Office::Server::UserProfiles::IPrivacyPolicyItem ^ get(System::String ^ profileName, System::String ^ profilePropertyName); };
public Microsoft.Office.Server.UserProfiles.IPrivacyPolicyItem this[string profileName, string profilePropertyName] { get; }
Default Public ReadOnly Property Item(profileName As String, profilePropertyName As String) As IPrivacyPolicyItem
Parameters
profileName
String String String
profilePropertyName
String String String
Property Value

Applies to