PeerEndPoint.Name 属性

定义

获取或设置一个 String,它表示 PeerEndPoint 实例的显示名称。Gets or sets a String that represents a displayed name for the PeerEndPoint instance.

public:
 property System::String ^ Name { System::String ^ get(); void set(System::String ^ value); };
public string Name { get; set; }
member this.Name : string with get, set
Public Property Name As String

属性值

表示 String 的显示名称的 PeerEndPointString representing the display name of the PeerEndPoint.

注解

为避免损坏实例状态,如果实例是从 PeerNearMePeerContact获取的,则调用方不应更改 EndPoint 值。To avoid corrupting the instance state, the caller should not change the EndPoint value if the instance was obtained from PeerNearMe or PeerContact.

适用于

另请参阅