AppDomainManager.HostSecurityManager AppDomainManager.HostSecurityManager AppDomainManager.HostSecurityManager AppDomainManager.HostSecurityManager Property

定义

获取宿主安全管理器,该管理器参与应用程序域的安全决策。Gets the host security manager that participates in security decisions for the application domain.

public:
 virtual property System::Security::HostSecurityManager ^ HostSecurityManager { System::Security::HostSecurityManager ^ get(); };
public virtual System.Security.HostSecurityManager HostSecurityManager { get; }
member this.HostSecurityManager : System.Security.HostSecurityManager
Public Overridable ReadOnly Property HostSecurityManager As HostSecurityManager

属性值

宿主安全管理器。The host security manager.

示例

下面的示例演示了自定义应用HostSecurityManager程序域管理器的属性的重写。The following example shows an override of the HostSecurityManager property for a custom application domain manager. 此代码示例是为AppDomainManager类提供的更大示例的一部分。This code example is part of a larger example provided for the AppDomainManager class.

public override HostSecurityManager HostSecurityManager
{
    get
    {
        return mySecurityManager;
    }
}
    Public Overrides ReadOnly Property HostSecurityManager() _
        As HostSecurityManager 
        Get
            Return mySecurityManager
        End Get
    End Property
End Class

注解

此属性允许主机提供HostSecurityManager以参与应用程序域的安全决策。This property allows a host to provide a HostSecurityManager to participate in the security decisions for the application domain.

适用于