ProfileContext.GetProfile (String, String) Method (BCL)
Commerce Server 2002
Use this method to retrieve the specified profile object.
[Visual Basic .NET]
Public Function GetProfile( _ ByVal keyValue As System.String, _ ByVal profileType As System.String _ ) As Profile
[C#]
public Profile GetProfile( System.String keyValue, System.String profileType );
Parameters
[Visual Basic .NET]
- keyValue
- The value of the primary key property.
- profileType
- The profile definition of interest.
[C#]
- keyValue
- The value of the primary key property.
- profileType
- The profile definition of interest.
Return Value
The retrieved profile object.
[C#]
If the profile does not exist, then no exception is raised and null reference is returned.
[Visual Basic .NET]
If the profile does not exist, then no exception is raised and Nothing is returned.
Requirements
Namespace: Microsoft.CommerceServer.Runtime.Profiles
Platforms: Windows 2000, Windows Server 2003
Assembly: Microsoft.CommerceServer.Runtime.dll
See Also
Code to Create and Set Profile Properties
Code to Retrieve and Display Profile Properties
Code to Use the SiteTerm Class
Copyright © 2005 Microsoft Corporation.All rights reserved.
Show: