Share via


RefreshProfileCache Method (String, String)

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Forces a single profile instance cache refresh on all runtime servers registered with the current site.

Namespace:  Microsoft.CommerceServer.Profiles
Assembly:  Microsoft.CommerceServer.Profiles.CrossTierTypes (in Microsoft.CommerceServer.Profiles.CrossTierTypes.dll)

Syntax

'Declaration
Public Sub RefreshProfileCache ( _
    primaryKeyValue As String, _
    profileType As String _
)
'Usage
Dim instance As ProfileManagementContext
Dim primaryKeyValue As String
Dim profileType As String

instance.RefreshProfileCache(primaryKeyValue, _
    profileType)
public void RefreshProfileCache(
    string primaryKeyValue,
    string profileType
)
public:
void RefreshProfileCache(
    String^ primaryKeyValue, 
    String^ profileType
)
public function RefreshProfileCache(
    primaryKeyValue : String, 
    profileType : String
)

Parameters

  • primaryKeyValue
    Type: System..::.String
    The value of the primary key property of the profile instance to retrieve.
  • profileType
    Type: System..::.String
    The type of profile to refresh (i.e. UserObject, Address).

Exceptions

Exception Condition
ArgumentNullException

Any of the parameters provided is nullNothingnullptra null reference (Nothing in Visual Basic).

ArgumentException

The key value provided is not the correct type.

AuthenticationException

User has not been authenticated.

NotAuthorizedException

User is not authorized to perform this task.

DefinitionDoesNotExistException

The profile definition named in the profileXml does not exist.

ProfileDoesNotExistException

No profile exists with the provided key value.

Remarks

This API forces a single profile instance cache refresh on all runtime servers registered with the current site. The WebService is responsible for determining the data type of the primary key property and converting primaryKeyValue to that data type.

Permissions

See Also

Reference

ProfileManagementContext Class

ProfileManagementContext Members

RefreshProfileCache Overload

Microsoft.CommerceServer.Profiles Namespace