PeerNameRegistration.IsRegistered 方法

定义

获取或设置在 PeerName 属性中指定的对等名称是否向主机上的特定 Cloud 进行了注册。Gets or sets whether the peer name specified in the PeerName property is registered with a specific Cloud on a host.

public:
 bool IsRegistered();
public bool IsRegistered ();
member this.IsRegistered : unit -> bool
Public Function IsRegistered () As Boolean

返回

Boolean

如果为 true,则说明对等名称向对等主机的 Cloud 进行了注册。If true, the peer name is registered with a Cloud for the peer host. 如果为 false,则说明可以使用 Start() 启动注册过程。If false, then the registration process can be started with Start().

例外

不能注册已经释放的对象。An object that has been disposed already cannot be registered.

适用于

另请参阅