共用方式為


DelegatingConfigHost.GetRestrictedPermissions 方法

定義

警告

Code Access Security is not supported or honored by the runtime.

設定指定的使用權限集合 (如果主物件中可以使用的話)。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

public:
 virtual void GetRestrictedPermissions(System::Configuration::Internal::IInternalConfigRecord ^ configRecord, [Runtime::InteropServices::Out] System::Security::PermissionSet ^ % permissionSet, [Runtime::InteropServices::Out] bool % isHostReady);
public virtual void GetRestrictedPermissions (System.Configuration.Internal.IInternalConfigRecord configRecord, out System.Security.PermissionSet permissionSet, out bool isHostReady);
[System.Obsolete("Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public virtual void GetRestrictedPermissions (System.Configuration.Internal.IInternalConfigRecord configRecord, out System.Security.PermissionSet permissionSet, out bool isHostReady);
abstract member GetRestrictedPermissions : System.Configuration.Internal.IInternalConfigRecord * PermissionSet * bool -> unit
override this.GetRestrictedPermissions : System.Configuration.Internal.IInternalConfigRecord * PermissionSet * bool -> unit
[<System.Obsolete("Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
abstract member GetRestrictedPermissions : System.Configuration.Internal.IInternalConfigRecord * PermissionSet * bool -> unit
override this.GetRestrictedPermissions : System.Configuration.Internal.IInternalConfigRecord * PermissionSet * bool -> unit
Public Overridable Sub GetRestrictedPermissions (configRecord As IInternalConfigRecord, ByRef permissionSet As PermissionSet, ByRef isHostReady As Boolean)

參數

permissionSet
PermissionSet

PermissionSet 物件。

isHostReady
Boolean

如果主應用程式已經完成初始化,則為 true,否則為 false

實作

屬性

適用於