HostProtectionException Oluşturucular
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
HostProtectionException sınıfının yeni bir örneğini başlatır.
Aşırı Yüklemeler
| Name | Description |
|---|---|
| HostProtectionException() |
varsayılan değerlerle HostProtectionException sınıfının yeni bir örneğini başlatır. |
| HostProtectionException(String) |
Belirtilen bir hata iletisiyle sınıfının yeni bir örneğini HostProtectionException başlatır. |
| HostProtectionException(SerializationInfo, StreamingContext) |
Geçersiz.
Sağlanan serileştirme bilgilerini ve akış bağlamını HostProtectionException kullanarak sınıfının yeni bir örneğini başlatır. |
| HostProtectionException(String, Exception) |
Sınıfın HostProtectionException yeni bir örneğini belirtilen bir hata iletisiyle ve bu özel durumun nedeni olan iç özel duruma başvuruyla başlatır. |
| HostProtectionException(String, HostProtectionResource, HostProtectionResource) |
Sınıfın HostProtectionException yeni bir örneğini belirtilen bir hata iletisiyle, korumalı konak kaynaklarıyla ve özel durumun atılmasıyla neden olan konak kaynaklarıyla başlatır. |
HostProtectionException()
- Kaynak:
- HostProtectionException.cs
- Kaynak:
- HostProtectionException.cs
- Kaynak:
- HostProtectionException.cs
- Kaynak:
- HostProtectionException.cs
- Kaynak:
- HostProtectionException.cs
- Kaynak:
- HostProtectionException.cs
- Kaynak:
- HostProtectionException.cs
- Kaynak:
- HostProtectionException.cs
varsayılan değerlerle HostProtectionException sınıfının yeni bir örneğini başlatır.
public:
HostProtectionException();
public HostProtectionException();
Public Sub New ()
Açıklamalar
Aşağıdaki tabloda sınıfın bir örneğinin ilk özellik değerleri gösterilmektedir HostProtectionException .
| Mülkiyet | Değer |
|---|---|
| ProtectedResources | HostProtectionResource.None |
| DemandedResources | HostProtectionResource.None |
Şunlara uygulanır
HostProtectionException(String)
- Kaynak:
- HostProtectionException.cs
- Kaynak:
- HostProtectionException.cs
- Kaynak:
- HostProtectionException.cs
- Kaynak:
- HostProtectionException.cs
- Kaynak:
- HostProtectionException.cs
- Kaynak:
- HostProtectionException.cs
- Kaynak:
- HostProtectionException.cs
- Kaynak:
- HostProtectionException.cs
Belirtilen bir hata iletisiyle sınıfının yeni bir örneğini HostProtectionException başlatır.
public:
HostProtectionException(System::String ^ message);
public HostProtectionException(string message);
new System.Security.HostProtectionException : string -> System.Security.HostProtectionException
Public Sub New (message As String)
Parametreler
- message
- String
Hatayı açıklayan ileti.
Açıklamalar
parametresinin message içeriği kullanıcı tarafından anlaşılabilir olmalıdır. Bu dizenin geçerli sistem kültürü için yerelleştirildiğinden emin olmak için bu oluşturucunun çağıranı gereklidir.
Şunlara uygulanır
HostProtectionException(SerializationInfo, StreamingContext)
- Kaynak:
- HostProtectionException.cs
- Kaynak:
- HostProtectionException.cs
- Kaynak:
- HostProtectionException.cs
- Kaynak:
- HostProtectionException.cs
- Kaynak:
- HostProtectionException.cs
- Kaynak:
- HostProtectionException.cs
- Kaynak:
- HostProtectionException.cs
- Kaynak:
- HostProtectionException.cs
Dikkat
This API supports obsolete formatter-based serialization. It should not be called or extended by application code.
Sağlanan serileştirme bilgilerini ve akış bağlamını HostProtectionException kullanarak sınıfının yeni bir örneğini başlatır.
protected:
HostProtectionException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
protected HostProtectionException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
protected HostProtectionException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new System.Security.HostProtectionException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Security.HostProtectionException
new System.Security.HostProtectionException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Security.HostProtectionException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parametreler
- info
- SerializationInfo
Serileştirilmiş nesne verilerini tutan nesne.
- context
- StreamingContext
Kaynak veya hedef hakkında bağlamsal bilgiler.
- Öznitelikler
Özel durumlar
info, null'e eşittir.
Açıklamalar
Bu oluşturucu, bir akış üzerinden iletilen özel durum nesnesini yeniden yapılandırmak için seri durumdan çıkarma sırasında çağrılır.
Şunlara uygulanır
HostProtectionException(String, Exception)
- Kaynak:
- HostProtectionException.cs
- Kaynak:
- HostProtectionException.cs
- Kaynak:
- HostProtectionException.cs
- Kaynak:
- HostProtectionException.cs
- Kaynak:
- HostProtectionException.cs
- Kaynak:
- HostProtectionException.cs
- Kaynak:
- HostProtectionException.cs
- Kaynak:
- HostProtectionException.cs
Sınıfın HostProtectionException yeni bir örneğini belirtilen bir hata iletisiyle ve bu özel durumun nedeni olan iç özel duruma başvuruyla başlatır.
public:
HostProtectionException(System::String ^ message, Exception ^ e);
public HostProtectionException(string message, Exception e);
new System.Security.HostProtectionException : string * Exception -> System.Security.HostProtectionException
Public Sub New (message As String, e As Exception)
Parametreler
- message
- String
Özel durumun nedenini açıklayan hata iletisi.
Geçerli özel durumun nedeni olan özel durum.
innerException parametresi değilsenull, geçerli özel durum, iç özel durumu işleyen bir catch blokta oluşturulur.
Açıklamalar
Önceki bir özel durumun doğrudan sonucu olarak oluşan bir özel durum, özelliğindeki InnerException önceki özel duruma başvuru içerebilir.
InnerException özelliği oluşturucuya geçirilen aynı değeri döndürür veya null özelliği oluşturucuya iç özel durum değeri sağlamaz.InnerException
Şunlara uygulanır
HostProtectionException(String, HostProtectionResource, HostProtectionResource)
- Kaynak:
- HostProtectionException.cs
- Kaynak:
- HostProtectionException.cs
- Kaynak:
- HostProtectionException.cs
- Kaynak:
- HostProtectionException.cs
- Kaynak:
- HostProtectionException.cs
- Kaynak:
- HostProtectionException.cs
- Kaynak:
- HostProtectionException.cs
- Kaynak:
- HostProtectionException.cs
Sınıfın HostProtectionException yeni bir örneğini belirtilen bir hata iletisiyle, korumalı konak kaynaklarıyla ve özel durumun atılmasıyla neden olan konak kaynaklarıyla başlatır.
public:
HostProtectionException(System::String ^ message, System::Security::Permissions::HostProtectionResource protectedResources, System::Security::Permissions::HostProtectionResource demandedResources);
public HostProtectionException(string message, System.Security.Permissions.HostProtectionResource protectedResources, System.Security.Permissions.HostProtectionResource demandedResources);
new System.Security.HostProtectionException : string * System.Security.Permissions.HostProtectionResource * System.Security.Permissions.HostProtectionResource -> System.Security.HostProtectionException
Public Sub New (message As String, protectedResources As HostProtectionResource, demandedResources As HostProtectionResource)
Parametreler
- message
- String
Özel durumun nedenini açıklayan hata iletisi.
- protectedResources
- HostProtectionResource
Kısmen güvenilen koda erişilemeyen konak kaynaklarını belirten numaralandırma değerlerinin bit düzeyinde birleşimi.
- demandedResources
- HostProtectionResource
İstenilen konak kaynaklarını belirten numaralandırma değerlerinin bit düzeyinde birleşimi.
Açıklamalar
parametresi, demandedResources özel durumun oluşturulmasına neden olan istenen konak koruma kategorilerini belirtir. Örneğin, bir yöntemin paylaşılan durumu kullanıma sunan bir HostProtectionAttribute özniteliği olduğunu varsayalım. yöntemi çağrıldığında, HostProtectionAttribute paylaşılan durum için bir bağlantı talebi gerçekleştirir. Konak paylaşılan durumu yasaklanmış bir kategori olarak ayarladıysaHostProtectionException, özelliği değeri HostProtectionResource.SharedStateolan bir demandedResources oluşturulur.