Share via


Membership.Policy Property

Gets the privacy policy for a specified membership.

Namespace:  Microsoft.Office.Server.UserProfiles
Assembly:  Microsoft.Office.Server (in Microsoft.Office.Server.dll)

Syntax

'Declaration
Public Overrides ReadOnly Property Policy As PrivacyPolicyItem
    Get
'Usage
Dim instance As Membership
Dim value As PrivacyPolicyItem

value = instance.Policy
public override PrivacyPolicyItem Policy { get; }

Property Value

Type: Microsoft.Office.Server.UserProfiles.PrivacyPolicyItem
The privacy policy for a specified membership.

Remarks

For more information about types of membership groups, see Memberships Overview. For a code example about how to create a member group and add a member to the newly created group, see How to: Create Memberships.

See Also

Reference

Membership Class

Membership Members

Microsoft.Office.Server.UserProfiles Namespace