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.155 -- Release Build+8f5b6346ef345ff2b563bad5a7ce845a03fc5786
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