ExtendedHostFunctionstypeLibEnumsT Method |
Imports enumerations defined within or referenced from a COM/ActiveX type library.
Namespace:
Microsoft.ClearScript
Assembly:
ClearScript.Core (in ClearScript.Core.dll) Version: 7.2.3
Syntaxpublic 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
- Type: T
An instance of the representative type. - collection (Optional)
- Type: Microsoft.ClearScriptHostTypeCollection
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
Type:
HostTypeCollectionA host type collection:
collection if it is not
null, a new host type collection otherwise.
See Also