Cloud.GetCloudByName(String) 方法

定义

返回具有指定群名称的 Cloud 对象。Returns the Cloud object with the specified cloud name.

public:
 static System::Net::PeerToPeer::Cloud ^ GetCloudByName(System::String ^ cloudName);
public static System.Net.PeerToPeer.Cloud GetCloudByName (string cloudName);
static member GetCloudByName : string -> System.Net.PeerToPeer.Cloud
Public Shared Function GetCloudByName (cloudName As String) As Cloud

参数

cloudName
String

包含 PNRP Cloud 的名称。Contains the name of the PNRP Cloud.

返回

Cloud

具有指定群名称的 Cloud 对象。The Cloud object with the specified cloud name.

例外

Cloud 名称未知。The Cloud name is not known.

注解

名称的最大大小为256个字符。The maximum size of the name is 256 characters.

如果 cloudName 参数为 null 或空,则 null 返回。If the cloudName parameter is null or empty, then null is returned.

中指定了云的作用域、 Global 本地链接或其他的作用域 ScopeThe scope of the cloud, Global, link-local, or otherwise, is specified in Scope.

适用于

另请参阅