Url Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
Code Access Security is not supported or honored by the runtime.
Provides the URL from which a code assembly originates as evidence for policy evaluation. This class cannot be inherited.
public ref class Url sealed : System::Security::Policy::EvidenceBase, System::Security::Policy::IIdentityPermissionFactory
public ref class Url sealed : System::Security::Policy::IIdentityPermissionFactory
[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 Url : System.Security.Policy.EvidenceBase, System.Security.Policy.IIdentityPermissionFactory
[System.Serializable]
public sealed class Url : System.Security.Policy.IIdentityPermissionFactory
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class Url : System.Security.Policy.IIdentityPermissionFactory
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class Url : System.Security.Policy.EvidenceBase, System.Security.Policy.IIdentityPermissionFactory
public sealed class Url : System.Security.Policy.EvidenceBase, System.Security.Policy.IIdentityPermissionFactory
[<System.Obsolete("Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
type Url = class
inherit EvidenceBase
interface IIdentityPermissionFactory
[<System.Serializable>]
type Url = class
interface IIdentityPermissionFactory
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type Url = class
interface IIdentityPermissionFactory
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type Url = class
inherit EvidenceBase
interface IIdentityPermissionFactory
type Url = class
inherit EvidenceBase
interface IIdentityPermissionFactory
Public NotInheritable Class Url
Inherits EvidenceBase
Implements IIdentityPermissionFactory
Public NotInheritable Class Url
Implements IIdentityPermissionFactory
- Inheritance
- Inheritance
-
Url
- Attributes
- Implements
Figyelemfelhívás
Code Access Security (CAS) has been deprecated across all versions of .NET Framework and .NET. Recent versions of .NET do not honor CAS annotations and produce errors if CAS-related APIs are used. Developers should seek alternative means of accomplishing security tasks.
The presence of Url evidence produces a UrlIdentityPermission in the grant set. If there is a Demand for UrlIdentityPermission, the UrlIdentityPermission that corresponds to the Url evidence is compared to the demanded permission.
The complete URL is considered, including the protocol (HTTP, HTTPS, FTP) and the file. For example, http://www.fourthcoffee.com/process/grind.htm
is a complete URL.
URLs can be matched exactly or by a wildcard in the final position. For example, http://www.fourthcoffee.com/process/*
is a wildcard URL.
Url(String) |
Initializes a new instance of the Url class with the URL from which a code assembly originates. |
Value |
Gets the URL from which the code assembly originates. |
Clone() |
Creates a new object that is a copy of the current instance. |
Clone() |
Creates a new object that is a complete copy of the current instance. (Inherited from EvidenceBase) |
Copy() |
Creates a new copy of the evidence object. |
Create |
Creates an identity permission corresponding to the current instance of the Url evidence class. |
Equals(Object) |
Compares the current Url evidence object to the specified object for equivalence. |
Get |
Gets the hash code of the current URL. |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
To |
Returns a string representation of the current Url. |
Termék | Verziók (Elavult) |
---|---|
.NET | (8 (package-provided), 9 (package-provided)) |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
Windows Desktop | 3.0, 3.1 (5, 6, 7, 8, 9) |
.NET-visszajelzés
A(z) .NET egy nyílt forráskód projekt. Visszajelzés adásához válasszon egy hivatkozást: