System.Messaging Reference (Document! X Sample)
FromXml Method



System.Messaging Namespace > MessageQueuePermission Class : FromXml Method
The XML encoding to use to reconstruct the security object.
When overridden in a derived class, reconstructs a security object with a specified state from an XML encoding.
Syntax
'Declaration
 
Public Overrides NotOverridable Sub FromXml( _
   ByVal securityElement As SecurityElement _
) 
'Usage
 
Dim instance As MessageQueuePermission
Dim securityElement As SecurityElement
 
instance.FromXml(securityElement)
public override void FromXml( 
   SecurityElement securityElement
)
public:
void FromXml( 
   SecurityElement^ securityElement
) override 

Parameters

securityElement
The XML encoding to use to reconstruct the security object.
Exceptions
ExceptionDescription
The elem parameter is null.
The elem parameter does not contain the XML encoding for an instance of the same type as the current instance.-or- The version number of the elem parameter is not supported.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

MessageQueuePermission Class
MessageQueuePermission Members
Base Implementation in FromXml