다음을 통해 공유


Protocol 생성자

정의

오버로드

Protocol(IntPtr)

지정된 Objective-C 프로토콜에 대한 Protocol 클래스의 인스턴스를 만듭니다.

Protocol(String)

이름으로 프로토콜을 조회하여 프로토콜 인스턴스를 만듭니다.

Protocol(Type)

지정된 관리 형식에 대한 Protocol 클래스의 인스턴스를 만듭니다(Objective-C 프로토콜을 나타내야 합니다).

Protocol(IntPtr)

지정된 Objective-C 프로토콜에 대한 Protocol 클래스의 인스턴스를 만듭니다.

public Protocol (IntPtr handle);
new ObjCRuntime.Protocol : nativeint -> ObjCRuntime.Protocol

매개 변수

handle
IntPtr

nativeint

프로토콜에 대한 Objective-C 포인터입니다.

적용 대상

Protocol(String)

이름으로 프로토콜을 조회하여 프로토콜 인스턴스를 만듭니다.

public Protocol (string name);
new ObjCRuntime.Protocol : string -> ObjCRuntime.Protocol

매개 변수

name
String

프로토콜의 이름입니다.

설명

이 메서드는 에 지정된 프로토콜이 없는 경우 ArgumentException을 name throw합니다.

메서드는 GetHandle(String) 낮은 수준의 핸들만 프로토콜에 반환하는 것을 제외하고 비슷한 역할을 수행합니다.

적용 대상

Protocol(Type)

지정된 관리 형식에 대한 Protocol 클래스의 인스턴스를 만듭니다(Objective-C 프로토콜을 나타내야 합니다).

public Protocol (Type type);
new ObjCRuntime.Protocol : Type -> ObjCRuntime.Protocol

매개 변수

type
Type

관리되는 형식(Objective-C 프로토콜을 나타내야 합니다).

적용 대상