다음을 통해 공유


FieldOffsetAttribute 생성자

구조체에 있는 필드의 시작 부분까지의 오프셋을 사용하여 FieldOffsetAttribute 클래스의 새 인스턴스를 초기화합니다.

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

구문

‘선언
Public Sub New ( _
    offset As Integer _
)
‘사용 방법
Dim offset As Integer

Dim instance As New FieldOffsetAttribute(offset)
public FieldOffsetAttribute (
    int offset
)
public:
FieldOffsetAttribute (
    int offset
)
public FieldOffsetAttribute (
    int offset
)
public function FieldOffsetAttribute (
    offset : int
)

매개 변수

  • offset
    구조체의 시작 부분에서 필드의 시작 부분까지 바이트 단위로 나타낸 오프셋입니다.

플랫폼

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에서 지원

.NET Compact Framework

2.0에서 지원

참고 항목

참조

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