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.165 -- Release Build+f17362b1c2762733365d4d2cf77064a666cd50be
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