ExtendedHostFunctionstypeLibEnumsT Method |
Imports enumerations defined within or referenced from a COM/ActiveX type library.
Namespace: Microsoft.ClearScriptAssembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.4.5
Syntax public HostTypeCollection typeLibEnums<T>(
T obj,
HostTypeCollection collection = null
)
where T : class
Public Function typeLibEnums(Of T As Class) (
obj As T,
Optional collection As HostTypeCollection = Nothing
) As HostTypeCollection
public:
generic<typename T>
where T : ref class
HostTypeCollection^ typeLibEnums(
T obj,
HostTypeCollection^ collection = nullptr
)
member typeLibEnums :
obj : 'T *
?collection : HostTypeCollection
(* Defaults:
let _collection = defaultArg collection null
*)
-> HostTypeCollection when 'T : not struct
Parameters
- obj T
- An instance of the representative type.
- collection HostTypeCollection (Optional)
- An optional host type collection with which to merge the imported enumerations.
Type Parameters
- T
- The imported type whose parent library is to be searched for relevant enumerations.
Return Value
HostTypeCollectionA host type collection:
collection if it is not
null, a new host type collection otherwise.
See Also