FileAuthorizationModule FileAuthorizationModule FileAuthorizationModule FileAuthorizationModule Class

定義

確認使用者具有權限,可以存取所要求的檔案。Verifies that the user has permission to access the file requested. 這個類別無法被繼承。This class cannot be inherited.

public ref class FileAuthorizationModule sealed : System::Web::IHttpModule
public sealed class FileAuthorizationModule : System.Web.IHttpModule
type FileAuthorizationModule = class
    interface IHttpModule
Public NotInheritable Class FileAuthorizationModule
Implements IHttpModule
繼承
FileAuthorizationModuleFileAuthorizationModuleFileAuthorizationModuleFileAuthorizationModule
實作

備註

此模組會針對檔系統存取控制清單 (Acl) 提供授權服務。This module provides authorization services against file-system access-control lists (ACLs). mode authentication 元素 (ASP.NET 設定架構)設定專案的屬性設Windows WindowsAuthenticationModule為, 以便應用程式使用時, FileAuthorizationModule模組會確保在執行要求之前, 要求使用者允許對資源的讀取或寫入權限, 視要求動詞而定。When the mode attribute of the authentication Element (ASP.NET Settings Schema) configuration element is set to Windows so that the WindowsAuthenticationModule is being used for the application, the FileAuthorizationModule module ensures that the requesting user is allowed read or write access to the resource, depending on the request verb, before executing the request. 如需詳細資訊,請參閱 CheckFileAccessForUser 方法。For more information, see the CheckFileAccessForUser method.

建構函式

FileAuthorizationModule() FileAuthorizationModule() FileAuthorizationModule() FileAuthorizationModule()

建立 FileAuthorizationModule 類別的執行個體。Creates an instance of the FileAuthorizationModule class.

方法

CheckFileAccessForUser(String, IntPtr, String) CheckFileAccessForUser(String, IntPtr, String) CheckFileAccessForUser(String, IntPtr, String) CheckFileAccessForUser(String, IntPtr, String)

判斷使用者是否有權限可存取所要求的檔案。Determines whether the user has access to the requested file.

Dispose() Dispose() Dispose() Dispose()

除了記憶體之外,釋放 FileAuthorizationModule 使用的所有資源。Releases all resources, other than memory, used by the FileAuthorizationModule.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
Init(HttpApplication) Init(HttpApplication) Init(HttpApplication) Init(HttpApplication)

初始化 FileAuthorizationModule 物件。Initializes the FileAuthorizationModule object.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)

適用於

另請參閱