共用方式為


Runtime.GetProtocol(String) 方法

定義

傳回指定通訊協定名稱之 Objective-C 通訊協定描述元的控制碼。

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

參數

protocol
String

Objective-C 通訊協定的名稱。

傳回

IntPtr

nativeint

指定通訊協定名稱的通訊協定控制碼。

備註

這相當於objc_getProtocol函式呼叫。

適用於