ICorDebugMergedAssemblyRecord::GetCulture 方法ICorDebugMergedAssemblyRecord::GetCulture Method

获取程序集的区域性名称字符串。Gets the culture name string of the assembly.

语法Syntax

HRESULT GetCulture(  
   [in] ULONG32 cchCulture,
   [out] ULONG32 *pcchCulture,
   [out, size_is(cchCulture), length_is(*pcchCulture)] WCHAR szCulture[]  
);  

参数Parameters

cchCulture
[in] szCulture 缓冲区中的字符数。[in] The number of characters in the szCulture buffer.

pcchCulture
[out] 实际写入 szCulture 缓冲区的字符数。[out] The number of characters actually written to the szCulture buffer.

szCulture
[out] 包含区域性名称的字符数组。[out] A character array that contains the culture name.

备注Remarks

区域性名称是用于标识区域性的唯一字符串,例如“EN-US”(针对美式英语区域性)或“neutral”(针对非特定区域性)。The culture name is a unique string that identifies a culture, such as "en-US" (for the English (United States) culture), or "neutral" (for a neutral culture).

备注

此方法仅适用于 .NET Native。This method is available with .NET Native only.

要求Requirements

平台: 请参阅系统要求Platforms: See System Requirements.

标头:CorDebug.idl、CorDebug.hHeader: CorDebug.idl, CorDebug.h

库: CorGuids.libLibrary: CorGuids.lib

.NET Framework 版本:自 4.6 之后可用,仅限 .NET NativeAvailable since 4.6, .NET Native only.NET Framework Versions: 自 4.6 之后可用,仅限 .NET NativeAvailable since 4.6, .NET Native only

请参阅See also