Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the upper bound for any dimension of the specified safe array.
Syntax
HRESULT SafeArrayGetUBound(
[in] SAFEARRAY *psa,
[in] UINT nDim,
[out] LONG *plUbound
);
Parameters
[in] psa
An array descriptor created by SafeArrayCreate.
[in] nDim
The array dimension for which to get the upper bound.
[out] plUbound
The upper bound.
Return value
This function can return one of these values.
Return code | Description |
---|---|
|
Success. |
|
The specified index is out of bounds. |
|
Overflow occurred while computing the upper bound. |
|
One of the arguments is not valid. |
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | oleauto.h |
Library | OleAut32.lib |
DLL | OleAut32.dll |