ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript
ExtendedHostFunctions Class
ExtendedHostFunctions Methods
arrType<T> Method
comType Method
lib Method
newComObj Method
type Method
typeLibEnums<T> Method

# ExtendedHostFunctionstypeLibEnums T 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.5.0
Syntax
C#
VB
C++
F#
Copy

    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

HostTypeCollection
A host type collection: collection if it is not null, a new host type collection otherwise.
See Also

#### Reference

ExtendedHostFunctions Class
Microsoft.ClearScript Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft