語言

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.

傳回

一個代表用於編碼實 PeerContact 例的 XML 物件模型的字串。

屬性

例外狀況

參數不可能為 null。

備註

作為參數的字串應從 ToXml取得。

此類別旨在作為簡單 XML 物件模型的輕量級實作,供協作基礎架構使用,而非一般 XML 物件模型。

適用於