CFMessagePort.TrySetName(String) 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.
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.