다음을 통해 공유


StructLayoutAttribute.Pack 필드

메모리에 있는 클래스 또는 구조체의 데이터 필드 맞춤을 제어합니다.

네임스페이스: System.Runtime.InteropServices
어셈블리: mscorlib(mscorlib.dll)

구문

‘선언
Public Pack As Integer
‘사용 방법
Dim instance As StructLayoutAttribute
Dim value As Integer

value = instance.Pack

instance.Pack = value
public int Pack
public:
int Pack
public int Pack
public var Pack : int

설명

이 필드는 LayoutKind.Sequential 값이 지정되는 경우 사용할 압축 크기를 나타냅니다. Pack 값은 0, 1, 2, 4, 8, 16, 32, 64 또는 128이어야 합니다. 이 값이 0이면 압축 맞춤이 현재 플랫폼에 대한 기본값으로 설정되어 있음을 나타냅니다.

플랫폼

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework에서 모든 플래폼의 모든 버전을 지원하지는 않습니다. 지원되는 버전의 목록은 시스템 요구 사항을 참조하십시오.

버전 정보

.NET Framework

2.0, 1.1, 1.0에서 지원

참고 항목

참조

StructLayoutAttribute 클래스
StructLayoutAttribute 멤버
System.Runtime.InteropServices 네임스페이스