Udostępnij za pośrednictwem


Klasa HtmlTagWithOffsets

Rozszerza podstawowe HtmlTag przez rozpoczęciem śledzenia i tag końcowy jest przeciwstawna wewnątrz dokumentu HTML.

Hierarchia dziedziczenia

Object
  Microsoft.VisualStudio.TestTools.WebTesting.HtmlTag
    Microsoft.VisualStudio.TestTools.WebTesting.HtmlTagWithOffsets

Przestrzeń nazw:  Microsoft.VisualStudio.TestTools.WebTesting
Zestaw:  Microsoft.VisualStudio.QualityTools.WebTestFramework (w Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

Składnia

'Deklaracja
Public Class HtmlTagWithOffsets _
    Inherits HtmlTag
public class HtmlTagWithOffsets : HtmlTag
public ref class HtmlTagWithOffsets : public HtmlTag
type HtmlTagWithOffsets =  
    class 
        inherit HtmlTag 
    end
public class HtmlTagWithOffsets extends HtmlTag

Typ HtmlTagWithOffsets uwidacznia następujące elementy członkowskie.

Konstruktorzy

  Nazwa Opis
Metoda publiczna HtmlTagWithOffsets Inicjuje nowe wystąpienie HtmlTagWithOffsets klasy.

Początek

Właściwości

  Nazwa Opis
Właściwość publiczna Attributes Pobiera zbiór atrybutów skojarzonych z tagu HTML. (Odziedziczone z HtmlTag).
Właściwość publiczna BeginOffset Pobiera lub Ustaw przesunięcie open bracket z HtmlTag wewnątrz dokumentu HTML.
Właściwość publiczna EndOffset Pobiera lub ustawić wartość przesunięcia dla HtmlTag Zamknij nawias wewnątrz dokumentu HTML.
Właściwość publiczna Name Zwraca lub ustawia nazwę znacznika. (Odziedziczone z HtmlTag).

Początek

Metody

  Nazwa Opis
Metoda publiczna AddAttribute Dodaje atrybut HtmlTag kolekcji. (Odziedziczone z HtmlTag).
Metoda publiczna Equals Determines whether the specified object is equal to the current object. (Odziedziczone z Object).
Metoda chroniona Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Odziedziczone z Object).
Metoda publiczna GetAttributeValue Pobiera wartość określony atrybut. (Odziedziczone z HtmlTag).
Metoda publiczna GetAttributeValueAsString Pobiera wartość określony atrybut w formacie ciągu znaków. (Odziedziczone z HtmlTag).
Metoda publiczna GetHashCode Serves as the default hash function. (Odziedziczone z Object).
Metoda publiczna GetType Gets the Type of the current instance. (Odziedziczone z Object).
Metoda chroniona MemberwiseClone Creates a shallow copy of the current Object. (Odziedziczone z Object).
Metoda publiczna ToString Returns a string that represents the current object. (Odziedziczone z Object).

Początek

Bezpieczeństwo wątku

Wszystkie publiczne static (Shared w języku Visual Basic) elementy członkowskie tego typu są bezpieczne dla wątków. Wystąpienia elementów członkowskich nie dają gwarancji bezpieczeństwa wątków.

Zobacz też

Informacje

Przestrzeń nazw Microsoft.VisualStudio.TestTools.WebTesting

Inne zasoby

Working with Web Tests