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.
Returns an array that contains the specified targets that are present in the resource plug-in store.
Syntax
HRESULT EnumerateTargets(
[in] BSTR FarmName,
[in] BSTR EnvName,
[in] TS_SB_SORT_BY sortByFieldId,
[in] BSTR sortyByPropName,
[in, out] DWORD *pdwCount,
[out] ITsSbTarget ** [] pVal
);
Parameters
[in] FarmName
The farm name.
[in] EnvName
The environment name.
[in] sortByFieldId
Specifies sort order.
[in] sortyByPropName
The property name to sort by if sortByFieldId is set to TS_SB_SORT_BY_PROP.
[in, out] pdwCount
The number of targets retrieved.
[out] pVal
Pointer to the retrieved ITsSbTarget objects.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
Requirement | Value |
---|---|
Minimum supported client | None supported |
Minimum supported server | Windows Server 2012 |
Target Platform | Windows |
Header | sbtsv.h |