Language

CFMessagePort.TrySetName(String) Method

Definition

Attempts to change the registered name of this local message port.

public bool TrySetName(string name);
member this.TrySetName : string -> bool

Parameters

name
String

The new port name.

Returns

true if the name was changed; otherwise, false.

Exceptions

name is null.

Remarks

This method returns false for remote ports, duplicate names, invalid names, and native registration failures.

Applies to