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.138 -- Release Build+96875833d2894fd2d83b642a724995fed7d1f0b1
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