IObjectControl interface  ISharedPropertyGroup interface

Chapter 2: ActiveX C++ Interface Reference

ISharedProperty interface

Description

Represents a property value that is shared among all ActiveX component instances in a EAServer 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

Retrieves 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.

Returns

Return value

To indicate

S_OK

Successful retrieval of the property.

E_INVALIDARG

pValue was NULL.

See also

put_Value




ISharedProperty::put_Value

Description

Sets 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.

Returns

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 © 2005. Sybase Inc. All rights reserved. ISharedPropertyGroup interface