Chapter 2 ActiveX C++ Interface Reference


ISharedProperty interface

Description

Represents a property value that is shared among all ActiveX component instances in a Jaguar package.

Methods

Usage

Use the ISharedPropertyGroup methods to create or retrieve ISharedProperty objects.

A shared property can be assigned any value that can be represented by an ActiveX VARIANT structure. However, VARIANT values with the VT_BYREF bit set are not allowed.

See Also

ISharedPropertyGroup interface, ISharedPropertyGroupManager interface


ISharedProperty::get_Value

Description

Retrieve a shared property value.

Syntax

#include <jagctx.h>
#include <JagSharedProp.h>

HRESULT ISharedProperty::get_Value (
VARIANT* pValue
);

Parameters

pValue

The address of a VARIANT structure to which the property's current value is copied.

Return Values

Return value

To indicate

S_OK

Successful retrieval of the property.

E_INVALIDARG

pValue was NULL.

See Also

put_Value


ISharedProperty::put_Value

Description

Set a shared property value.

Syntax

#include <jagctx.h>
#include <JagSharedProp.h>

HRESULT ISharedProperty::put_Value (
VARIANT newValue
);

Parameters

newValue

A VARIANT structure containing the new value for the property.

Return Values

Return value

To indicate

S_OK

Successful retrieval of the property.

E_INVALIDARG

The VT_BYREF bit is set in the VARIANT that was passed as newValue.

DISP_E_ARRAYISLOCKED

The VARIANT that was passed as newValue contains an array that is locked.

DISP_E_BADVARTYPE

The VARIANT that was passed as newValue contains an invalid type.

See Also

get_Value

 


Copyright © 2000 Sybase, Inc. All rights reserved.