## X509ExtensionEnumerator class


Enumerator to iterate through extension collection. Objects of this class should only be allocated using [System::MakeObject()](../../system/makeobject/) function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into [System::SmartPtr](../../system/smartptr/) pointer and use this pointer to pass it to functions as argument.

```cpp
class X509ExtensionEnumerator : public System::Collections::Generic::SimpleEnumerator<X509ExtensionCollection::vector_t>
```

## Methods

| Method | Description |
| --- | --- |
| [X509ExtensionEnumerator](./x509extensionenumerator/)(const SharedPtr\<X509ExtensionCollection\>\&) | Creates enumerator. |
## Typedefs

| Typedef | Description |
| --- | --- |
| [ThisType](./thistype/) | This type. |
| [BaseType](./basetype/) | Parent type. |
## See Also

* Class [SimpleEnumerator](../../system.collections.generic/simpleenumerator/)
* Namespace [System::Security::Cryptography::X509Certificates](../)
* Library [Aspose.PUB for C++](../../)
