Edit

Share via


SharedProperty.Value Property

Definition

Gets or sets the value of the shared property.

public:
 property System::Object ^ Value { System::Object ^ get(); void set(System::Object ^ value); };
public object Value { get; set; }
member this.Value : obj with get, set
Public Property Value As Object

Property Value

The value of the shared property.

Examples

The following code example shows how to use the Value property to retrieve the value stored in a shared property.

// Retrieve the value from shared property, and increment the shared 
// property value.
nextReceiptNumber =  safe_cast<int>(ReceiptNumber->Value);
ReceiptNumber->Value = nextReceiptNumber + 1;
// Retrieve the value from shared property, and increment the shared
// property value.
nextReceiptNumber = (int) ReceiptNumber.Value;
ReceiptNumber.Value = nextReceiptNumber + 1;
' Retrieve the value from shared property, and increment the shared 
' property value.
nextReceiptNumber = Fix(ReceiptNumber.Value)
ReceiptNumber.Value = nextReceiptNumber + 1

Applies to