13 private bool m_deserializing;
25 if (permissionSetXml ==
null)
29 m_originXml = permissionSetXml.Copy();
30 base.FromXml(m_originXml);
36 m_deserializing =
true;
42 m_deserializing =
false;
56 return m_originXml.Copy();
61 return new ReadOnlyPermissionSetEnumerator(base.GetEnumeratorImpl());
66 return base.GetPermissionImpl(permClass)?.
Copy();
The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method th...
override IPermission RemovePermissionImpl(Type permClass)
Removes a permission of a certain type from the set.
Represents a read-only collection that can contain many different types of permissions.
IPermission Copy()
Creates and returns an identical copy of the current permission.
override IPermission AddPermissionImpl(IPermission perm)
Adds a specified permission to the T:System.Security.PermissionSet.
Describes the source and destination of a given serialized stream, and provides an additional caller-...
override SecurityElement ToXml()
Creates an XML encoding of the security object and its current state.
override IPermission GetPermissionImpl(Type permClass)
Gets a permission object of the specified type, if it exists in the set.
Provides information about, and means to manipulate, the current environment and platform....
Represents a collection that can contain many different types of permissions.
Represents the XML object model for encoding security objects. This class cannot be inherited.
ReadOnlyPermissionSet(SecurityElement permissionSetXml)
Initializes a new instance of the T:System.Security.ReadOnlyPermissionSet class.
override bool IsReadOnly
Gets a value that indicates whether the collection is read-only.
Represents type declarations: class types, interface types, array types, value types,...
Defines methods implemented by permission types.
Specifies that the class can be serialized.
The exception that is thrown when a method call is invalid for the object's current state.
override void FromXml(SecurityElement et)
Reconstructs a security object with a specified state from an XML encoding.
override PermissionSet Copy()
Creates a copy of the T:System.Security.ReadOnlyPermissionSet.
override IPermission SetPermissionImpl(IPermission perm)
Sets a permission to the T:System.Security.PermissionSet, replacing any existing permission of the sa...
override IEnumerator GetEnumeratorImpl()
Returns an enumerator for the permissions of the set.
Supports a simple iteration over a non-generic collection.