ICCAttribute interface

Description

The ICCAttribute interface represents the Rational® ClearCase® attribute object.

Under Rational ClearCase control, users are allowed to attach arbitrary data to ICCVOBObject objects. Such data is called an attribute.

Inheritance

The ICCAttribute interface inherits from IDisplatch.

Properties and related methods

Value and SetValue

Gets the attribute value

Sets and resets the attribute value

Read-only properties

Type

Gets the attribute type of this attribute

VOB

Gets the VOB that contains the object having this attribute

Methods

Remove

Removes the attribute from its VOB object

Examples

Changing the value of an attribute

Creation

You can get a CCAttribute object from the following interfaces:

Remove

Removes the attribute from its VOB object

Category

Method

VB syntax

Sub Remove([ Comment As String = "" ])

Visual C++ syntax

HRESULT Remove(_bstr_t Comment);
Parameter
Description
Comment
Optional in Visual Basic. A comment to associate with the history record for this Remove operation.

Member of: ICCAttribute interface

SetValue

Sets and resets the attribute value

Category

Method

VB syntax

Sub SetValue(Value As Variant, [ Comment As String = "" ])

Visual C++ syntax

HRESULT SetValue(
     const _variant_t& Value,
     _bstr_t Comment);
Parameter
Description
Value
New attribute value. The type of Value must match the attribute type ValueType.
Comment
Optional in Visual Basic. A comment to associate with the history record for this SetValue operation.

Type

Gets the attribute type of this attribute

Category

Read-only property

VB syntax

Property Type As CCAttributeType

Visual C++ syntax

ICCAttributeTypePtr GetType();

Return value

The local copy of the global type, not a handle to the global type.

Member of: ICCAttribute interface

Value

Gets the attribute value

Category

Read-only property

VB syntax

Property Value As Variant

Visual C++ syntax

_variant_t GetValue();

Return value

Matches the attribute type ValueType.

Member of: ICCAttribute interface

VOB

Gets the VOB that contains the object having this attribute

Category

Read-only property

VB syntax

Property VOB As CCVOB

Visual C++ syntax

ICCVOBPtr GetVOB();

Member of: ICCAttribute interface


Feedback