ProfileContext.GetProfile (String, String) Method (BCL)
Use this method to retrieve the specified profile object.
[Visual Basic .NET]
Public Function GetProfile( _ByValkeyValue As System.String, _
ByValprofileType As System.String _
) As Profile
[C#]
public Profile GetProfile(System.StringkeyValue,
System.StringprofileType);
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.