Marshal.GetTypeLibLcid Method

Definition

Retrieves the LCID of a type library.

Overloads

GetTypeLibLcid(ITypeLib)

Retrieves the LCID of a type library.

GetTypeLibLcid(UCOMITypeLib)
Obsolete.

Retrieves the LCID of a type library.

GetTypeLibLcid(ITypeLib)

Retrieves the LCID of a type library.

C#
public static int GetTypeLibLcid(System.Runtime.InteropServices.ComTypes.ITypeLib typelib);
C#
[System.Security.SecurityCritical]
public static int GetTypeLibLcid(System.Runtime.InteropServices.ComTypes.ITypeLib typelib);

Parameters

typelib
ITypeLib

The type library whose LCID is to be retrieved.

Returns

The LCID of the type library that the typelib parameter points to.

Attributes

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

GetTypeLibLcid(UCOMITypeLib)

Caution

Use System.Runtime.InteropServices.Marshal.GetTypeLibLcid(ITypeLib pTLB) instead. http://go.microsoft.com/fwlink/?linkid=14202&ID=0000011.

Retrieves the LCID of a type library.

C#
public static int GetTypeLibLcid(System.Runtime.InteropServices.UCOMITypeLib pTLB);
C#
[System.Obsolete("Use System.Runtime.InteropServices.Marshal.GetTypeLibLcid(ITypeLib pTLB) instead. http://go.microsoft.com/fwlink/?linkid=14202&ID=0000011.", false)]
public static int GetTypeLibLcid(System.Runtime.InteropServices.UCOMITypeLib pTLB);
C#
[System.Obsolete("Use System.Runtime.InteropServices.Marshal.GetTypeLibLcid(ITypeLib pTLB) instead. http://go.microsoft.com/fwlink/?linkid=14202&ID=0000011.", false)]
[System.Security.SecurityCritical]
public static int GetTypeLibLcid(System.Runtime.InteropServices.UCOMITypeLib pTLB);

Parameters

pTLB
UCOMITypeLib

The type library whose LCID is to be retrieved.

Returns

The LCID of the type library that the pTLB parameter points to.

Attributes

Applies to

.NET Framework 4.8.1 and other versions
Product Versions (Obsolete)
.NET Framework 1.1 (2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1)