|
Dieser Artikel wurde maschinell übersetzt. Bewegen Sie den Mauszeiger über die Sätze im Artikel, um den Originaltext anzuzeigen. Weitere Informationen
|
Übersetzung
Original
|
MatchAttribute-Klasse
Namespace: System.Web.Services.Protocols
Assembly: System.Web.Services (in System.Web.Services.dll)
Der MatchAttribute-Typ macht die folgenden Member verfügbar.
| Name | Beschreibung | |
|---|---|---|
![]() | MatchAttribute |
| Name | Beschreibung | |
|---|---|---|
![]() | Capture | |
![]() | Group | |
![]() | IgnoreCase | |
![]() | MaxRepeats | |
![]() | Pattern | |
![]() | TypeId |
| Name | Beschreibung | |
|---|---|---|
![]() | Equals | Infrastruktur. |
![]() | GetHashCode | |
![]() | GetType | |
![]() | IsDefaultAttribute | |
![]() | Match | |
![]() | ToString |
| Name | Beschreibung | |
|---|---|---|
![]() ![]() | _Attribute.GetIDsOfNames | |
![]() ![]() | _Attribute.GetTypeInfo | |
![]() ![]() | _Attribute.GetTypeInfoCount | |
![]() ![]() | _Attribute.Invoke |
using System; using System.Web.Services.Protocols; public class MatchAttribute_Example : HttpGetClientProtocol { public MatchAttribute_Example() { Url = "http://localhost"; } [HttpMethodAttribute(typeof(TextReturnReader), typeof(UrlParameterWriter))] public Example_Headers GetHeaders() { return ((Example_Headers)Invoke("GetHeaders", (Url + "/MyHeaders.html"), new object[0])); } public System.IAsyncResult BeginGetHeaders(System.AsyncCallback callback, object asyncState) { return BeginInvoke("GetHeaders", (Url + "/MyHeaders.html"), new object[0], callback, asyncState); } public Example_Headers EndGetHeaders(System.IAsyncResult asyncResult) { return (Example_Headers)(EndInvoke(asyncResult)); } } // <Snippet5> public class Example_Headers { [MatchAttribute("TITLE>(.*?)<")] public string Title; [MatchAttribute("", Pattern="h1>(.*?)<", IgnoreCase=true)] public string H1; [MatchAttribute("H2>((([^<,]*),?)+)<", Group=3, Capture=4)] public string Element; [MatchAttribute("H2>((([^<,]*),?){2,})<", Group=3, MaxRepeats=0)] public string[] Elements1; [MatchAttribute("H2>((([^<,]*),?){2,})<", Group=3, MaxRepeats=1)] public string[] Elements2; [MatchAttribute("H3 ([^=]*)=([^>]*)", Group=1)] public string Attribute; [MatchAttribute("H3 ([^=]*)=([^>]*)", Group=2)] public string Value; } // </Snippet4>
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core-Rolle wird nicht unterstützt), Windows Server 2008 R2 (Server Core-Rolle wird mit SP1 oder höher unterstützt; Itanium wird nicht unterstützt)
.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen für .NET Framework.
