OraclePermissionAttribute Třída
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Upozornění
Code Access Security is not supported or honored by the runtime.
Upozornění
OraclePermissionAttribute has been deprecated. http://go.microsoft.com/fwlink/?LinkID=144260
Přidruží akci zabezpečení k vlastnímu atributu zabezpečení.
public ref class OraclePermissionAttribute sealed : System::Security::Permissions::CodeAccessSecurityAttribute
[System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Method | System.AttributeTargets.Struct, AllowMultiple=true, Inherited=false)]
[System.Obsolete("Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public sealed class OraclePermissionAttribute : System.Security.Permissions.CodeAccessSecurityAttribute
[System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Method | System.AttributeTargets.Struct, AllowMultiple=true, Inherited=false)]
[System.Serializable]
public sealed class OraclePermissionAttribute : System.Security.Permissions.CodeAccessSecurityAttribute
[System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Method | System.AttributeTargets.Struct, AllowMultiple=true, Inherited=false)]
[System.Serializable]
[System.Obsolete("OraclePermissionAttribute has been deprecated. http://go.microsoft.com/fwlink/?LinkID=144260", false)]
public sealed class OraclePermissionAttribute : System.Security.Permissions.CodeAccessSecurityAttribute
[System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Method | System.AttributeTargets.Struct, AllowMultiple=true, Inherited=false)]
public sealed class OraclePermissionAttribute : System.Security.Permissions.CodeAccessSecurityAttribute
[<System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Method | System.AttributeTargets.Struct, AllowMultiple=true, Inherited=false)>]
[<System.Obsolete("Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
type OraclePermissionAttribute = class
inherit CodeAccessSecurityAttribute
[<System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Method | System.AttributeTargets.Struct, AllowMultiple=true, Inherited=false)>]
[<System.Serializable>]
type OraclePermissionAttribute = class
inherit CodeAccessSecurityAttribute
[<System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Method | System.AttributeTargets.Struct, AllowMultiple=true, Inherited=false)>]
[<System.Serializable>]
[<System.Obsolete("OraclePermissionAttribute has been deprecated. http://go.microsoft.com/fwlink/?LinkID=144260", false)>]
type OraclePermissionAttribute = class
inherit CodeAccessSecurityAttribute
[<System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Method | System.AttributeTargets.Struct, AllowMultiple=true, Inherited=false)>]
type OraclePermissionAttribute = class
inherit CodeAccessSecurityAttribute
Public NotInheritable Class OraclePermissionAttribute
Inherits CodeAccessSecurityAttribute
- Dědičnost
- Atributy
Poznámky
Caution
Zabezpečení přístupu kódu (CAS) je zastaralé ve všech verzích rozhraní .NET Framework a .NET. Nedávné verze .NET nezohledňují anotace CAS a způsobují chyby, pokud se používají API související s CAS. Vývojáři by měli hledat alternativní způsoby provádění úloh zabezpečení.
Tento typ je zastaralý a bude odebrán v budoucí verzi rozhraní .NET Framework. Další informace najdete v tématu Oracle a ADO.NET.
Konstruktory
| Name | Description |
|---|---|
| OraclePermissionAttribute(SecurityAction) |
Zastaralé.
Zastaralé.
Inicializuje novou instanci OraclePermissionAttribute třídy. |
Vlastnosti
| Name | Description |
|---|---|
| Action |
Zastaralé.
Zastaralé.
Získá nebo nastaví akci zabezpečení. (Zděděno od SecurityAttribute) |
| AllowBlankPassword |
Zastaralé.
Zastaralé.
Získá nebo nastaví hodnotu určující, zda je prázdné heslo povoleno. |
| ConnectionString |
Zastaralé.
Zastaralé.
Získá nebo nastaví povolené připojovací řetězec. |
| KeyRestrictionBehavior |
Zastaralé.
Zastaralé.
Určuje, zda seznam parametrů připojovací řetězec identifikovaných vlastností KeyRestrictions jsou jedinými povolenými parametry připojovací řetězec. |
| KeyRestrictions |
Zastaralé.
Zastaralé.
Získá nebo nastaví parametry připojovacího řetězce, které jsou povoleny nebo zakázány. |
| TypeId |
Zastaralé.
Zastaralé.
Při implementaci v odvozené třídě získá jedinečný identifikátor pro tento Attribute. (Zděděno od Attribute) |
| Unrestricted |
Zastaralé.
Zastaralé.
Získá nebo nastaví hodnotu určující, zda je deklarováno úplné (neomezené) oprávnění k prostředku chráněnému atributem. (Zděděno od SecurityAttribute) |
Metody
| Name | Description |
|---|---|
| CreatePermission() |
Zastaralé.
Zastaralé.
OraclePermission Vrátí objekt, který je nakonfigurován podle vlastností atributu. |
| Equals(Object) |
Zastaralé.
Zastaralé.
Vrátí hodnotu, která určuje, zda je tato instance rovna zadanému objektu. (Zděděno od Attribute) |
| GetHashCode() |
Zastaralé.
Zastaralé.
Vrátí kód hash pro tuto instanci. (Zděděno od Attribute) |
| GetType() |
Zastaralé.
Zastaralé.
Získá Type aktuální instance. (Zděděno od Object) |
| IsDefaultAttribute() |
Zastaralé.
Zastaralé.
Při přepsání v odvozené třídě určuje, zda hodnota této instance je výchozí hodnotou pro odvozenou třídu. (Zděděno od Attribute) |
| Match(Object) |
Zastaralé.
Zastaralé.
Při přepsání v odvozené třídě vrátí hodnotu, která určuje, zda se tato instance rovná zadanému objektu. (Zděděno od Attribute) |
| MemberwiseClone() |
Zastaralé.
Zastaralé.
Vytvoří mělkou kopii aktuálního Object. (Zděděno od Object) |
| ShouldSerializeConnectionString() |
Zastaralé.
Zastaralé.
Určuje, zda má atribut serializovat připojovací řetězec. |
| ShouldSerializeKeyRestrictions() |
Zastaralé.
Zastaralé.
Určuje, zda má atribut serializovat sadu omezení klíče. |
| ToString() |
Zastaralé.
Zastaralé.
Vrátí řetězec, který představuje aktuální objekt. (Zděděno od Object) |
Explicitní implementace rozhraní
| Name | Description |
|---|---|
| _Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr) |
Zastaralé.
Zastaralé.
Mapuje sadu názvů na odpovídající sadu identifikátorů pro rozesílání. (Zděděno od Attribute) |
| _Attribute.GetTypeInfo(UInt32, UInt32, IntPtr) |
Zastaralé.
Zastaralé.
Načte informace o typu objektu, který lze použít k získání informací o typu pro rozhraní. (Zděděno od Attribute) |
| _Attribute.GetTypeInfoCount(UInt32) |
Zastaralé.
Zastaralé.
Získá počet rozhraní typu informací, které objekt poskytuje (0 nebo 1). (Zděděno od Attribute) |
| _Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr) |
Zastaralé.
Zastaralé.
Poskytuje přístup k vlastnostem a metodám vystaveným objektem. (Zděděno od Attribute) |