Runtime.GetProtocol(String) Method

Definition

Returns the handle of the Objective-C protocol descriptor for the given protocol name.

public static IntPtr GetProtocol (string protocol);
static member GetProtocol : string -> nativeint

Parameters

protocol
String

Name of the Objective-C protocol.

Returns

IntPtr

nativeint

The protocol handle for the given protocol name.

Remarks

This is the equivalent of the objc_getProtocol function call.

Applies to