Aracılığıyla paylaş


ConditionalRuleException Sınıf

Koşullu bir kuralın üç yöntemden birini yürütme sırasında bir özel durum oluştuğunda, durum oluşturulduktan özel durum temsil eder.

Devralma Hiyerarşisi

Object
  Exception
    Microsoft.VisualStudio.TestTools.WebTesting.WebTestException
      Microsoft.VisualStudio.TestTools.WebTesting.ConditionalRuleException

Ad alanı:  Microsoft.VisualStudio.TestTools.WebTesting
Derleme:  Microsoft.VisualStudio.QualityTools.WebTestFramework (Microsoft.VisualStudio.QualityTools.WebTestFramework.dll içinde)

Sözdizimi

'Bildirim
<SerializableAttribute> _
Public Class ConditionalRuleException _
    Inherits WebTestException
[SerializableAttribute]
public class ConditionalRuleException : WebTestException
[SerializableAttribute]
public ref class ConditionalRuleException : public WebTestException
[<SerializableAttribute>]
type ConditionalRuleException =  
    class 
        inherit WebTestException 
    end
public class ConditionalRuleException extends WebTestException

ConditionalRuleException türü aşağıdaki üyeleri ortaya koyar.

Oluşturucular

  Ad Açıklama
Genel yöntem ConditionalRuleException() Yeni bir örneğini başlatır ConditionalRuleException sınıfı.
Genel yöntem ConditionalRuleException(String) Yeni bir örneğini başlatır ConditionalRuleException kullanarak sağlanan ileti sınıfı.
Korumalı yöntem ConditionalRuleException(SerializationInfo, StreamingContext) Yeni bir örneğini başlatır ConditionalRuleException sınıfı.Bir özel durum sunucudan istemciye yayılır remoting senaryolarda kullanılır.
Genel yöntem ConditionalRuleException(String, Exception) Yeni bir örneğini başlatır ConditionalRuleException belirtilen kullanarak sınıf bir iç özel durum iletisi.

Üst

Özellikler

  Ad Açıklama
Genel özellik Data Gets a collection of key/value pairs that provide additional user-defined information about the exception. (Exception kaynağından devralındı.)
Genel özellik HelpLink Gets or sets a link to the help file associated with this exception. (Exception kaynağından devralındı.)
Korumalı özellik HResult Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception. (Exception kaynağından devralındı.)
Genel özellik InnerException Gets the Exception instance that caused the current exception. (Exception kaynağından devralındı.)
Genel özellik Message Gets a message that describes the current exception. (Exception kaynağından devralındı.)
Genel özellik Source Gets or sets the name of the application or the object that causes the error. (Exception kaynağından devralındı.)
Genel özellik StackTrace Gets a string representation of the immediate frames on the call stack. (Exception kaynağından devralındı.)
Genel özellik TargetSite Gets the method that throws the current exception. (Exception kaynağından devralındı.)

Üst

Yöntemler

  Ad Açıklama
Genel yöntem Equals Determines whether the specified object is equal to the current object. (Object kaynağından devralındı.)
Korumalı yöntem Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Object kaynağından devralındı.)
Genel yöntem GetBaseException When overridden in a derived class, returns the Exception that is the root cause of one or more subsequent exceptions. (Exception kaynağından devralındı.)
Genel yöntem GetHashCode Serves as the default hash function. (Object kaynağından devralındı.)
Genel yöntem GetObjectData When overridden in a derived class, sets the SerializationInfo with information about the exception. (Exception kaynağından devralındı.)
Genel yöntem GetType Gets the runtime type of the current instance. (Exception kaynağından devralındı.)
Korumalı yöntem MemberwiseClone Creates a shallow copy of the current Object. (Object kaynağından devralındı.)
Genel yöntem ToString Creates and returns a string representation of the current exception. (Exception kaynağından devralındı.)

Üst

Notlar

Üç yöntemi aşağıdaki gibidir:

İş Parçacığı Güvenliği

Bu türün tüm genel statik (Visual Basic'te Shared) üyeleri iş parçacığı açısından güvenlidir. Hiçbir örnek üyesinin iş parçacığı açısından güvenliği garanti edilemez.

Ayrıca bkz.

Başvuru

Microsoft.VisualStudio.TestTools.WebTesting Ad Alanı

Initialize

CheckCondition

CleanUp