Profile.Refresh Method (BCL)
Use this method to reload the object from the underlying stores.
This method does not refresh the profile schema, or refresh the Profile Service. Rather, it only retrieves data from storage.
To refresh the Profile Service, you must re-create the ProfileContext, which is returned from the CommerceProfileModule class. For example, you can set CommerceProfileModule.Current to Null or a new ProfileContext instance. When CommerceProfileModule.Current is Null, a new ProfileContext instance is created automatically.
Definition
[Visual Basic .NET]
Public Sub Refresh( _)
[C#]
public void Refresh();
Remarks
This method wraps the IProfileObject::GetInfo method.
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.