共用方式為


NSPortNameServer.GetPort 方法

定義

多載

GetPort(String)
GetPort(String, String)

GetPort(String)

[Foundation.Export("portForName:")]
public virtual Foundation.NSPort GetPort (string portName);
abstract member GetPort : string -> Foundation.NSPort
override this.GetPort : string -> Foundation.NSPort

參數

portName
String

傳回

屬性

適用於

GetPort(String, String)

[Foundation.Export("portForName:host:")]
public virtual Foundation.NSPort GetPort (string portName, string hostName);
abstract member GetPort : string * string -> Foundation.NSPort
override this.GetPort : string * string -> Foundation.NSPort

參數

portName
String
hostName
String

傳回

屬性

適用於