PeerContact.FromXml(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
.
Unable to complete FromXml(String) operation
Parameter is not a valid FromXml(SecurityElement) object.
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.