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.164 -- Release Build+6f79aa91bc24bd466d730bef30ac2ee810d04507
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