Tries to set a profile value.

Namespace:  EPiServer.Personalization
Assembly:  EPiServer (in EPiServer.dll) Version: 5.2.375.236

Syntax

C#
public bool TrySetProfileValue(
	string profileProperty,
	Object value
)

Parameters

profileProperty
Type: System..::.String
The name of the profile property.
value
Type: System..::.Object
The value.

Return Value

true if the value was set successfully, false otherwise.

Remarks

This method can be used as a convenience to handle a flexible profile with optional properties.

See Also