ASP.NET.in.a.Nutshell.Second.Edition [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

ASP.NET.in.a.Nutshell.Second.Edition [Electronic resources] - نسخه متنی

G. andrew Duthie; matthew Macdonald

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید







AspNetHostingPermissionAttribute.NET 1.1, serializable

System.Web (system.dll)sealed class

With this attribute, you can ensure that the current assembly has the
required code access security permission to host the ASP.NET engine.
If it does not, a
System.Security.SecurityException will be thrown
immediately (which prevents the problem of an unexpected
security-related failure later on). This attribute serves the same
purpose as the AspNetHostingPermission class. The
difference is that while AspNetHostingPermission
must be used programmatically (by creating an instance and invoking
the corresponding method),
AspNetHostingPermissionAttribute is used
declaratively, by adding the attribute to an assembly or code
construct like a class or method declaration.

Note that this type only pertains to code access security (the policy
of allowed and disallowed actions configured using the .NET Framework
Configuration Tool or the caspol.exe command-line
utility). It has nothing to do with ASP.NET or IIS authentication. It
will also not be of any interest if you are using IIS to host the
ASP.NET engine.

public sealed class 

AspNetHostingPermissionAttribute : System.Security.Permissions.CodeAccessSecurityAttribute {
// Public Constructors
public

AspNetHostingPermissionAttribute (System.Security.Permissions.SecurityAction

action );
// Public Instance Properties
public AspNetHostingPermissionLevel

Level {set; get; }
// Public Instance Methods
public override IPermission

CreatePermission ( ); // overrides System.Security.Permissions.SecurityAttribute
}



Hierarchy


System.Object
System.Attribute
System.Security.Permissions.SecurityAttribute

System.Security.Permissions.CodeAccessSecurityAttribute

AspNetHostingPermissionAttribute

Valid On


All

/ 873