System.Security.PermissionSet.ToString C# (CSharp) Method

ToString() public method

public ToString ( ) : string
return string
        public override string ToString() => base.ToString();
        public virtual SecurityElement ToXml() { return default(SecurityElement); }

Usage Example

Beispiel #1
0
        SecurityException(string message, AssemblyName assemblyName,
#if NOT_PFX
                          PermissionSet grant,
                          PermissionSet refused,
#endif
                          MethodInfo method, SecurityAction action, object demanded
#if NOT_PFX
                          , IPermission permThatFailed, Evidence evidence
#endif
                          )
            : base(message)
        {
            base.HResult = unchecked ((int)0x8013150A);
            _assembly    = assemblyName;
#if NOT_PFX
            _granted = (grant == null) ? String.Empty : grant.ToString();
            _refused = (refused == null) ? String.Empty : refused.ToString();
#endif
            _method   = method;
            _action   = action;
            _demanded = demanded;
#if NOT_PFX
            _firstperm = permThatFailed;

            if (_firstperm != null)
            {
                permissionType = _firstperm.GetType();
            }
            _evidence = evidence;
#endif
        }
All Usage Examples Of System.Security.PermissionSet::ToString