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

字串,代表用來編碼 PeerContact 執行個體的 XML 物件模型。

屬性

例外狀況

參數不能是 null

備註

要當做 參數傳遞的字串應該從 ToXml 取得。

這個類別是簡單 XML 物件模型的輕量型實作,用於共同作業基礎結構內,而不是做為一般 XML 物件模型使用。

適用於