15 private string m_file;
17 private string m_name;
19 private bool m_unicode;
122 while (streamReader ==
null && num < array.Length)
128 return ParsePermissionSet(
new Parser(streamReader));
142 private PermissionSet ParsePermissionSet(Parser parser)
144 SecurityElement topElement = parser.GetTopElement();
146 permissionSet.FromXml(topElement);
147 return permissionSet;
152 [SecuritySafeCritical]
165 return ParsePermissionSet(
new Parser(m_xml.ToCharArray()));
Represents a character encoding.To browse the .NET Framework source code for this type,...
PermissionSetAttribute(SecurityAction action)
Initializes a new instance of the T:System.Security.Permissions.PermissionSetAttribute class with the...
FileMode
Specifies how the operating system should open a file.
PermissionSet CreatePermissionSet()
Creates and returns a new permission set based on this permission set attribute object.
static Encoding Unicode
Gets an encoding for the UTF-16 format using the little endian byte order.
Represents the security policy levels for the common language runtime. This class cannot be inherited...
Implements a T:System.IO.TextReader that reads characters from a byte stream in a particular encoding...
string Name
Gets or sets the name of the permission set.
Allows security actions for a T:System.Security.PermissionSet to be applied to code using declarative...
static Encoding ASCII
Gets an encoding for the ASCII (7-bit) character set.
SecurityAction
Specifies the security actions that can be performed using declarative security.
Creates a stream whose backing store is memory.To browse the .NET Framework source code for this type...
Represents a collection that can contain many different types of permissions.
Provides a T:System.IO.Stream for a file, supporting both synchronous and asynchronous read and write...
override IPermission CreatePermission()
This method is not used.
Defines methods implemented by permission types.
AttributeTargets
Specifies the application elements on which it is valid to apply an attribute.
Specifies the base attribute class for code access security.
string Hex
Gets or sets the hexadecimal representation of the XML encoded permission set.
PermissionState
Specifies whether a permission should have all or no access to resources at creation.
Represents errors that occur during application execution.To browse the .NET Framework source code fo...
FileAccess
Defines constants for read, write, or read/write access to a file.
string XML
Gets or sets the XML representation of a permission set.
Specifies that the class can be serialized.
abstract long Position
When overridden in a derived class, gets or sets the position within the current stream.
static Encoding UTF8
Gets an encoding for the UTF-8 format.
bool UnicodeEncoded
Gets or sets a value indicating whether the file specified by P:System.Security.Permissions....
Provides static methods for the creation, copying, deletion, moving, and opening of a single file,...
Provides a generic view of a sequence of bytes. This is an abstract class.To browse the ....