MarshalAsAttribute 생성자

정의

MarshalAsAttribute 클래스의 새 인스턴스를 초기화합니다.

오버로드

MarshalAsAttribute(Int16)

지정된 MarshalAsAttribute 값을 사용하여 UnmanagedType 클래스의 새 인스턴스를 초기화합니다.

MarshalAsAttribute(UnmanagedType)

지정된 MarshalAsAttribute 열거형 멤버를 사용하여 UnmanagedType 클래스의 새 인스턴스를 초기화합니다.

MarshalAsAttribute(Int16)

지정된 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)

지정된 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

데이터를 마샬링할 값입니다.

설명

오류 발생 우려가 적은 읽을 수 있는 코드의 경우 항상이 생성자를 사용 합니다.

추가 정보

적용 대상