NamedPermissionSet::ToXml Method ()

 

Creates an XML element description of the named permission set.

Namespace:   System.Security
Assembly:  mscorlib (in mscorlib.dll)

public:
virtual SecurityElement^ ToXml() override

Return Value

Type: System.Security::SecurityElement^

The XML representation of the named permission set.

Use FromXml to recreate the state represented by the returned element.

The following code example shows the use of the ToXml method to recreate a NamedPermissionSet object. This code example is part of a larger example provided for the NamedPermissionSet class.

.NET Framework
Available since 1.1
Return to top
Show: