Share via


PeerContact.FromXml(String) 方法

定义

基于提供的 XML 数据创建一个 PeerContact 实例。

public:
 static System::Net::PeerToPeer::Collaboration::PeerContact ^ FromXml(System::String ^ peerContactXml);
[System.Security.SecurityCritical]
public static System.Net.PeerToPeer.Collaboration.PeerContact FromXml (string peerContactXml);
[<System.Security.SecurityCritical>]
static member FromXml : string -> System.Net.PeerToPeer.Collaboration.PeerContact
Public Shared Function FromXml (peerContactXml As String) As PeerContact

参数

peerContactXml
String

用于重新构造 PeerContact 的 XML 编码。

返回

一个字符串,表示用于编写 PeerContact 实例的 XML 对象模型。

属性

例外

参数不能为 null

注解

应从 ToXml获取要作为 参数传递的字符串。

此类旨在成为简单 XML 对象模型的轻型实现,以便在协作基础结构中使用,而不是用作常规 XML 对象模型。

适用于