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

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

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

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

G. andrew Duthie; matthew Macdonald

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

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

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







AspNetHostingPermission.NET 1.1, serializable

System.Web (system.dll)sealed class

With this class, you can ensure that the current assembly has the
required code access security permission to host the ASP.NET engine.
If you call Demand( ) and the assembly does not
have the required permission, a
System.Security.SecurityException will be thrown
immediately (which prevents the problem of an unexpected
security-related failure later on). You can also use the
Deny( ) method to programmatically revoke this
permission.

Note that this class 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 the host the ASP.NET engine.

This type was added in .NET 1.1.

public sealed class 

AspNetHostingPermission : System.Security.CodeAccessPermission,
System.Security.Permissions.IUnrestrictedPermission {
// Public Constructors
public

AspNetHostingPermission (AspNetHostingPermissionLevel

level );
public

AspNetHostingPermission (System.Security.Permissions.PermissionState

state );
// Public Instance Properties
public AspNetHostingPermissionLevel

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

Copy ( ); // overrides CodeAccessPermission
public override void

FromXml (System.Security.SecurityElement

securityElement );// overrides CodeAccessPermission
public override IPermission

Intersect (System.Security.IPermission

target );// overrides CodeAccessPermission
public override bool

IsSubsetOf (System.Security.IPermission

target );// overrides CodeAccessPermission
public bool

IsUnrestricted ( ); // implements IUnrestrictedPermission
public override SecurityElement

ToXml ( ); // overrides CodeAccessPermission
public override IPermission

Union (System.Security.IPermission

target );// overrides CodeAccessPermission
}



Hierarchy


System.Object
System.Security.CodeAccessPermission(System.Security.IPermission,
System.Security.ISecurityEncodable
,
System.Security.IStackWalk)

AspNetHostingPermission(System.Security.Permissions.IUnrestrictedPermission)

/ 873