NSConnection.GetRootProxy Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| GetRootProxy<TProxy>(String, String, NSPortNameServer) |
Gets the root proxy object for the connection identified by name, host, and port name server. |
| GetRootProxy<TProxy>() |
Gets the root proxy object for this connection. |
| GetRootProxy<TProxy>(String, String) |
Gets the root proxy object for the connection identified by name and host. |
GetRootProxy<TProxy>(String, String, NSPortNameServer)
Gets the root proxy object for the connection identified by name, host, and port name server.
public static TProxy GetRootProxy<TProxy>(string name, string hostName, Foundation.NSPortNameServer server) where TProxy : Foundation.NSObject;
public static TProxy GetRootProxy<TProxy>(string name, string? hostName, Foundation.NSPortNameServer server) where TProxy : Foundation.NSObject;
static member GetRootProxy : string * string * Foundation.NSPortNameServer -> 'Proxy (requires 'Proxy :> Foundation.NSObject)
Type Parameters
- TProxy
The type of the proxy object to return.
Parameters
- name
- String
The name of the connection.
- hostName
- String
The name of the host on which the connection is registered.
- server
- NSPortNameServer
The NSPortNameServer to use for looking up the connection.
Returns
The root proxy object for the specified connection, cast to the specified type.
Remarks
This method retrieves the root object from a connection identified by name on the specified hostName using the given port name server.
Applies to
GetRootProxy<TProxy>()
Gets the root proxy object for this connection.
public TProxy GetRootProxy<TProxy>() where TProxy : Foundation.NSObject;
member this.GetRootProxy : unit -> 'Proxy (requires 'Proxy :> Foundation.NSObject)
Type Parameters
- TProxy
The type of the proxy object to return.
Returns
The root proxy object, cast to the specified type.
Remarks
This method retrieves the root object provided by the receiver's peer. The returned object is a proxy that represents the root object on the remote side of the connection.
Applies to
GetRootProxy<TProxy>(String, String)
Gets the root proxy object for the connection identified by name and host.
public static TProxy GetRootProxy<TProxy>(string name, string hostName) where TProxy : Foundation.NSObject;
public static TProxy GetRootProxy<TProxy>(string name, string? hostName) where TProxy : Foundation.NSObject;
static member GetRootProxy : string * string -> 'Proxy (requires 'Proxy :> Foundation.NSObject)
Type Parameters
- TProxy
The type of the proxy object to return.
Parameters
- name
- String
The name of the connection.
- hostName
- String
The name of the host on which the connection is registered.
Returns
The root proxy object for the specified connection, cast to the specified type.
Remarks
This method retrieves the root object from a connection identified by name on the specified hostName.