Url Sınıf

Tanım

Dikkat

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

İlke değerlendirmesi için kanıt olarak bir kod derlemesinin kaynaklandığı URL'yi sağlar. Bu sınıf devralınamaz.

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
Devralma
Devralma
Url
Öznitelikler
Uygulamalar

Açıklamalar

Caution

Kod Erişim Güvenliği (CAS), .NET Framework ve .NET'in tüm sürümlerinde kullanım dışı bırakılmıştır. .NET'in son sürümleri CAS ek açıklamalarını dikkate almaz ve CAS ile ilgili API'ler kullanılırsa hata üretir. Geliştiriciler, güvenlik görevlerini yerine getirmek için alternatif yöntemler aramalıdır.

Kanıtın Url varlığı, izin kümesinde bir UrlIdentityPermission oluşturur. için DemandUrlIdentityPermission bir varsaUrlIdentityPermission, kanıta Url karşılık gelen, istenen izinle karşılaştırılır.

Protokol (HTTP, HTTPS, FTP) ve dosya dahil olmak üzere url'nin tamamı dikkate alınır. Örneğin, http://www.fourthcoffee.com/process/grind.htm tam bir URL'dir.

URL'ler tam olarak veya son konumda joker karakterle eşleştirilebilir. Örneğin, http://www.fourthcoffee.com/process/* joker karakter URL'sidir.

Oluşturucular

Name Description
Url(String)
Geçersiz.

Bir kod derlemesinin Url kaynaklandığı URL ile sınıfının yeni bir örneğini başlatır.

Özellikler

Name Description
Value
Geçersiz.

Kod derlemesinin kaynaklandığı URL'yi alır.

Yöntemler

Name Description
Clone()
Geçersiz.

Geçerli örneğin kopyası olan yeni bir nesne oluşturur.

Clone()
Geçersiz.

Geçerli örneğin tam kopyası olan yeni bir nesne oluşturur.

(Devralındığı yer: EvidenceBase)
Copy()
Geçersiz.

Kanıt nesnesinin yeni bir kopyasını oluşturur.

CreateIdentityPermission(Evidence)
Geçersiz.

Kanıt sınıfının geçerli örneğine Url karşılık gelen bir kimlik izni oluşturur.

Equals(Object)
Geçersiz.

Geçerli Url kanıt nesnesini denklik için belirtilen nesneyle karşılaştırır.

GetHashCode()
Geçersiz.

Geçerli URL'nin karma kodunu alır.

GetType()
Geçersiz.

Geçerli örneğin Type alır.

(Devralındığı yer: Object)
MemberwiseClone()
Geçersiz.

Geçerli Objectbasit bir kopyasını oluşturur.

(Devralındığı yer: Object)
ToString()
Geçersiz.

Geçerli Urlöğesinin dize gösterimini döndürür.

Şunlara uygulanır