次の方法で共有


Value Property

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

Gets or sets the property value.

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

Syntax

'Declaration
Public Property Value As Object
'Usage
Dim instance As ProfileProperty
Dim value As Object

value = instance.Value

instance.Value = value
public Object Value { get; set; }
public:
property Object^ Value {
    Object^ get ();
    void set (Object^ value);
}
public function get Value () : Object
public function set Value (value : Object)

Property Value

Type: System..::.Object
The value of the property.

Remarks

Accesses the property value. When assigning values to the Value member, do not pass an array of strings with one or more nullNothingnullptra null reference (Nothing in Visual Basic) elements. Doing so will cause an exception to be thrown, and the Value member assignment will not occur.

In the BCL interface, you use System.DBNull to nullNothingnullptra null reference (Nothing in Visual Basic) out the value.

When dealing with implementations involving the encryption of profile properties, note that the KeyIndexValue property is read-only, and will throw an exception if you attempt a set operation.

Permissions

See Also

Reference

ProfileProperty Class

ProfileProperty Members

Microsoft.CommerceServer.Runtime.Profiles Namespace