Bewerken

Delen via


PeerContact.FromXml(String) Method

Definition

Creates a PeerContact instance based on provided XML data.

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

Parameters

peerContactXml
String

The XML encoding used to reconstruct the PeerContact.

Returns

A string that represents the XML object model for encoding the PeerContact instance.

Attributes

Exceptions

Parameter cannot be null.

Remarks

The string to pass as the parameter should be obtained from ToXml.

This class is intended to be a lightweight implementation of a simple XML object model for use within the collaboration infrastructure, and not for use as a general XML object model.

Applies to