MarshalAsAttribute 생성자
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
MarshalAsAttribute 클래스의 새 인스턴스를 초기화합니다.
오버로드
MarshalAsAttribute(Int16) |
지정된 MarshalAsAttribute 값을 사용하여 UnmanagedType 클래스의 새 인스턴스를 초기화합니다. |
MarshalAsAttribute(UnmanagedType) |
지정된 MarshalAsAttribute 열거형 멤버를 사용하여 UnmanagedType 클래스의 새 인스턴스를 초기화합니다. |
MarshalAsAttribute(Int16)
- Source:
- MarshalAsAttribute.cs
- Source:
- MarshalAsAttribute.cs
- Source:
- MarshalAsAttribute.cs
지정된 MarshalAsAttribute 값을 사용하여 UnmanagedType 클래스의 새 인스턴스를 초기화합니다.
public:
MarshalAsAttribute(short unmanagedType);
public MarshalAsAttribute (short unmanagedType);
new System.Runtime.InteropServices.MarshalAsAttribute : int16 -> System.Runtime.InteropServices.MarshalAsAttribute
Public Sub New (unmanagedType As Short)
매개 변수
- unmanagedType
- Int16
데이터를 마샬링할 값입니다.
설명
이 생성자는 기본 16 비트 부호 있는 정수로 각각 나타내는 UnmanagedType 열거형 멤버입니다. Tlbimp.exe(형식 라이브러리 가져오기자)는 이 생성자를 사용합니다.
추가 정보
적용 대상
MarshalAsAttribute(UnmanagedType)
- Source:
- MarshalAsAttribute.cs
- Source:
- MarshalAsAttribute.cs
- Source:
- MarshalAsAttribute.cs
지정된 MarshalAsAttribute 열거형 멤버를 사용하여 UnmanagedType 클래스의 새 인스턴스를 초기화합니다.
public:
MarshalAsAttribute(System::Runtime::InteropServices::UnmanagedType unmanagedType);
public MarshalAsAttribute (System.Runtime.InteropServices.UnmanagedType unmanagedType);
new System.Runtime.InteropServices.MarshalAsAttribute : System.Runtime.InteropServices.UnmanagedType -> System.Runtime.InteropServices.MarshalAsAttribute
Public Sub New (unmanagedType As UnmanagedType)
매개 변수
- unmanagedType
- UnmanagedType
데이터를 마샬링할 값입니다.
설명
오류 발생 우려가 적은 읽을 수 있는 코드의 경우 항상이 생성자를 사용 합니다.
추가 정보
적용 대상
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기