Returns a string representation of the System.Security.PermissionSet.
![]()
A representation of the System.Security.PermissionSet.
The string representation is useful in debugging to see the state of a System.Security.PermissionSet.
The following example displays the XML that encodes the state of a System.Security.PermissionSet .
C# Example
using System;
using System.Security;
using System.Security.Permissions;
public class PermissionSetToStringExample {
public static void Main() {
PermissionSet ps = new PermissionSet(PermissionState.Unrestricted);
Console.WriteLine(ps.ToString());
}
}
The output is
<PermissionSet class="System.Security.PermissionSet" version="1" Unrestricted="true"/>