Export (0) Print
Expand All

MembershipData Class

SharePoint 2007
Provides properties to retrieve and set information about a membership.

Web Service: User ProfileWeb Reference: http://<Site>/_vti_bin/UserProfileService.asmx

[SerializableAttribute] 
[GeneratedCodeAttribute("wsdl", "2.0.50727.42")] 
[XmlTypeAttribute(Namespace="http://microsoft.com/webservices/SharePointPortalServer/UserProfileService")] 
[DebuggerStepThroughAttribute] 
[DesignerCategoryAttribute("code")] 
public class MembershipData

The MembershipData class returns information about a pinned link when the GetUserMemberships method of the UserProfileServiceclass is called.

The User Profile Web service namespace is an arbitrary name for a reference to the UserProfileService.asmx Web service in Microsoft Office SharePoint Server 2007.

The User Profile Web service provides a user profile interface for remote clients to read and create user profiles.

To use the User Profile Web service library, you must generate a proxy class in either Microsoft Visual C# or Microsoft Visual Basic through which you can call the various Web service methods.

You access the Web Services Description Language (WSDL) for the User Profile Web service endpoint through UserProfileService.asmx?wsdl.

The following example shows the format of the URL to the User Profile Web service WSDL file.

http://server/customsite/_vti_bin/UserProfileService.asmx

If you do not have a custom site, you can use the following URL temporarily:

http://server/_vti_bin/UserProfileService.asmx

It is recommended that you create a custom site, and then use the URL that includes the custom site in the URL format.

The following table describes each element in the URL.

URL element

Description

server

The name of the server on which Microsoft Office SharePoint Server 2007 is deployed.

customsite

A custom Office SharePoint Server 2007 site that the server administrator creates.

<endpointname>.asmx

The name of the Web service endpoint. For User Profile Web service, it is UserProfileService.asmx.

For more information about the WSDL format, see the World Wide Web Consortium (W3C) WSDL specification at http://www.w3.org/TR/wsdl.

For more information about working with properties with multiple values, see User Profile Properties Overview. For a code example about how to set and create multivalue properties, see How to: Set Multiple Values to a Multivalue Property and How to: Create Multivalue Properties.

For more information about memberships, 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.

System.Object
  User Profile.MembershipData

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2014 Microsoft