Gemstone PQDIF Library
Show/Hide TOC

# CollectionElementGetOrAddVector Method

Gets the vector element identified by the given tag or adds a new vector element if one does not already exist.

## Definition

Namespace: Gemstone.PQDIF.Physical
Assembly: Gemstone.PQDIF (in Gemstone.PQDIF.dll) Version: 1.0.173 -- Release Build+83080c2c75f31cf4c77448eec3f624d323a6c7eb
C#
View Source Request Example

    public VectorElement GetOrAddVector(
    	Guid tag
    )

VB
View Source Request Example

    Public Function GetOrAddVector (
    	tag As Guid
    ) As VectorElement

C++
View Source Request Example

    public:
    VectorElement^ GetOrAddVector(
    	Guid tag
    )

JavaScript
View Source Request Example

    function GetOrAddVector(tag);

#### Parameters

tag Guid
  The tag which identifies the vector element to be retrieved.

#### Return Value

VectorElement
The vector element identified by the tag, or a new vector element if one did not already exist.

## See Also

#### Reference

CollectionElement Class
Gemstone.PQDIF.Physical Namespace