## LinkedList::AddFirst(const SharedPtr\<LinkedListNode\<T\>\>\&) method


リストの先頭に **newNode** を追加します。

```cpp
void System::Collections::Generic::LinkedList<T>::AddFirst(const SharedPtr<LinkedListNode<T>> &newNode)
```


| パラメーター | 型 | 説明 |
| --- | --- | --- |
| newNode | const SharedPtr\<LinkedListNode\<T\>\>\& | 追加する新しいノード。 |

## 参照

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [LinkedListNode](../../linkedlistnode/)
* Class [LinkedList](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.Page for C++](../../../)
## LinkedList::AddFirst(const T\&) method


リストの先頭に **element** を追加します。

```cpp
SharedPtr<LinkedListNode<T>> System::Collections::Generic::LinkedList<T>::AddFirst(const T &element)
```


| パラメーター | 型 | 説明 |
| --- | --- | --- |
| element | const T\& | 追加する要素。 |

### ReturnValue

新しいノード。

## 参照

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [LinkedListNode](../../linkedlistnode/)
* Class [LinkedList](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.Page for C++](../../../)
