System.Security.SecurityException.GetResString C# (CSharp) Method

GetResString() static private method

static private GetResString ( string sResourceName ) : string
sResourceName string
return string
        internal static string GetResString(string sResourceName)
        {
            PermissionSet.s_fullTrust.Assert();
            return Environment.GetResourceString(sResourceName);
        }

Usage Example

Example #1
0
 // Called from the VM to create a HP Exception
 private HostProtectionException(HostProtectionResource protectedResources, HostProtectionResource demandedResources)
     : base(SecurityException.GetResString("HostProtection_HostProtection"))
 {
     SetErrorCode(__HResults.COR_E_HOSTPROTECTION);
     m_protected = protectedResources;
     m_demanded  = demandedResources;
 }
All Usage Examples Of System.Security.SecurityException::GetResString