GetProfile Method
Retrieves the XML representing a profile instance in the profile system.
Namespace: Microsoft.CommerceServer.Profiles.WebService
Assembly: Microsoft.CommerceServer.Profiles.DataManagement (in Microsoft.CommerceServer.Profiles.DataManagement.dll)
Syntax
'Declaration
<WebMethodAttribute> _
Public Overridable Function GetProfile ( _
primaryKeyValue As String, _
profileType As String _
) As XmlElement
'Usage
Dim instance As ProfilesWebService
Dim primaryKeyValue As String
Dim profileType As String
Dim returnValue As XmlElement
returnValue = instance.GetProfile(primaryKeyValue, _
profileType)
[WebMethodAttribute]
public virtual XmlElement GetProfile(
string primaryKeyValue,
string profileType
)
[WebMethodAttribute]
public:
virtual XmlElement^ GetProfile(
String^ primaryKeyValue,
String^ profileType
)
public function GetProfile(
primaryKeyValue : String,
profileType : String
) : XmlElement
Parameters
- primaryKeyValue
Type: System..::.String
Value of the primary key property of the profile instance to retrieve.
- profileType
Type: System..::.String
The type of profile to retrieve (i.e. UserObject, Address).
Return Value
Type: System.Xml..::.XmlElement
XML representing the specified profile instance.
Remarks
Retrieves a specified profile from the server. Returns an XML representation of the retrieved profile instance.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.