## ExternalLinkCollection::Add(const U16String\&, const Vector \<U16String\>\&) method


Adds an external link.

```cpp
int32_t Aspose::Cells::ExternalLinkCollection::Add(const U16String &fileName, const Vector<U16String> &sheetNames)
```


| Parameter | Type | Description |
| --- | --- | --- |
| fileName | const U16String\& | The external file name. |
| sheetNames | const Vector \<U16String\>\& | All sheet names of the external file. |

## ReturnValue

The position of the external name in this list.

## See Also

* Class [Vector](../../vector/)
* Class [U16String](../../u16string/)
* Class [ExternalLinkCollection](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## ExternalLinkCollection::Add(const char16_t*, const Vector \<U16String\>\&) method


Adds an external link.

```cpp
int32_t Aspose::Cells::ExternalLinkCollection::Add(const char16_t *fileName, const Vector<U16String> &sheetNames)
```


| Parameter | Type | Description |
| --- | --- | --- |
| fileName | const char16_t* | The external file name. |
| sheetNames | const Vector \<U16String\>\& | All sheet names of the external file. |

## ReturnValue

The position of the external name in this list.

## See Also

* Class [Vector](../../vector/)
* Class [U16String](../../u16string/)
* Class [ExternalLinkCollection](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## ExternalLinkCollection::Add(DirectoryType, const U16String\&, const Vector \<U16String\>\&) method


Add an external link .

```cpp
int32_t Aspose::Cells::ExternalLinkCollection::Add(DirectoryType directoryType, const U16String &fileName, const Vector<U16String> &sheetNames)
```


| Parameter | Type | Description |
| --- | --- | --- |
| directoryType | DirectoryType | The directory type of the file name. |
| fileName | const U16String\& | the file name. |
| sheetNames | const Vector \<U16String\>\& | All sheet names of the external file. |

## ReturnValue

The position of the external name in this list.

## See Also

* Class [Vector](../../vector/)
* Enum [DirectoryType](../../directorytype/)
* Class [U16String](../../u16string/)
* Class [ExternalLinkCollection](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## ExternalLinkCollection::Add(DirectoryType, const char16_t*, const Vector \<U16String\>\&) method


Add an external link .

```cpp
int32_t Aspose::Cells::ExternalLinkCollection::Add(DirectoryType directoryType, const char16_t *fileName, const Vector<U16String> &sheetNames)
```


| Parameter | Type | Description |
| --- | --- | --- |
| directoryType | DirectoryType | The directory type of the file name. |
| fileName | const char16_t* | the file name. |
| sheetNames | const Vector \<U16String\>\& | All sheet names of the external file. |

## ReturnValue

The position of the external name in this list.

## See Also

* Class [Vector](../../vector/)
* Enum [DirectoryType](../../directorytype/)
* Class [U16String](../../u16string/)
* Class [ExternalLinkCollection](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
