111 return (flags & flags2) == flags;
164 securityElement.
AddAttribute(
"class", GetType().FullName +
", " + GetType().
Module.Assembly.FullName.Replace(
'"',
'\''));
168 securityElement.
AddAttribute(
"Flags", m_flags.ToString());
174 return securityElement;
185 if (securityElement ==
null)
189 string text = securityElement.Attribute(
"class");
190 if (text ==
null || text.IndexOf(GetType().FullName,
StringComparison.Ordinal) == -1)
192 throw new ArgumentException(SR.GetString(
"Argument_InvalidClassAttribute"),
"securityElement");
194 string text2 = securityElement.Attribute(
"Unrestricted");
195 if (text2 !=
null &&
string.Compare(text2,
"true",
StringComparison.OrdinalIgnoreCase) == 0)
201 string text3 = securityElement.Attribute(
"Flags");
Allows a permission to expose an unrestricted state.
The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method th...
override bool IsSubsetOf(IPermission target)
Determines whether the current permission is a subset of the specified permission.
StorePermission(PermissionState state)
Initializes a new instance of the T:System.Security.Permissions.StorePermission class with either ful...
override IPermission Intersect(IPermission target)
Creates and returns a permission that is the intersection of the current permission and the specified...
StringComparison
Specifies the culture, case, and sort rules to be used by certain overloads of the M:System....
bool IsUnrestricted()
Returns a value indicating whether the current permission is unrestricted.
The exception that is thrown for invalid casting or explicit conversion.
override void FromXml(SecurityElement securityElement)
Reconstructs a permission with a specified state from an XML encoding.
static object Parse(Type enumType, string value)
Converts the string representation of the name or numeric value of one or more enumerated constants t...
Provides the base class for enumerations.
Represents the XML object model for encoding security objects. This class cannot be inherited.
Controls access to stores containing X.509 certificates. This class cannot be inherited.
Defines the underlying structure of all code access permissions.
StorePermissionFlags Flags
Gets or sets the type of T:System.Security.Cryptography.X509Certificates.X509Store access allowed by ...
Defines methods implemented by permission types.
StorePermissionFlags
Specifies the permitted access to X.509 certificate stores.
static CultureInfo CurrentCulture
Gets or sets the T:System.Globalization.CultureInfo object that represents the culture used by the cu...
The exception that is thrown when one of the arguments provided to a method is not valid.
Attribute can be applied to a module.
PermissionState
Specifies whether a permission should have all or no access to resources at creation.
void AddAttribute(string name, string value)
Adds a name/value attribute to an XML element.
StorePermission(StorePermissionFlags flag)
Initializes a new instance of the T:System.Security.Permissions.StorePermission class with the specif...
override SecurityElement ToXml()
Creates an XML encoding of the permission and its current state.
Specifies that the class can be serialized.
override IPermission Copy()
Creates and returns an identical copy of the current permission.
override IPermission Union(IPermission target)
Creates a permission that is the union of the current permission and the specified permission.
Provides information about a specific culture (called a locale for unmanaged code development)....