Export (0) Print
Expand All

ProfileService.GetPropertiesMetadata Method

Retrieves information about the profile properties that are available through the profile service.

Namespace:  System.Web.ApplicationServices
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

public ProfilePropertyMetadata[] GetPropertiesMetadata()

Return Value

Type: System.Web.ApplicationServices.ProfilePropertyMetadata[]
An array of ProfilePropertyMetadata objects that contain information about the profile properties.

Use the GetPropertiesMetadata method to retrieve information about profile properties from a client application that is compatible with the Windows Communication Framework (WCF). You can retrieve information such as the following:

  • The name and type of the properties.

  • Whether they are read-only.

  • Whether they can be accessed by users who have not been authenticated.

  • The default values for the properties.

After retrieving these values, a client application can take appropriate actions such as not trying to set a read-only property. The current user does not have to be authenticated in order to call the GetPropertiesMetadata method, because the properties apply to all users.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

© 2014 Microsoft