1<?xml version="1.0" encoding="utf-8"?> 2<Type Name="Capture" FullName="System.Text.RegularExpressions.Capture"> 3 <TypeSignature Language="C#" Value="public class Capture" Maintainer="auto" /> 4 <TypeSignature Language="ILAsm" Value=".class public auto ansi serializable beforefieldinit Capture extends System.Object" /> 5 <AssemblyInfo> 6 <AssemblyName>System</AssemblyName> 7 <AssemblyPublicKey>[00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00]</AssemblyPublicKey> 8 <AssemblyVersion>1.0.3300.0</AssemblyVersion> 9 <AssemblyVersion>1.0.5000.0</AssemblyVersion> 10 <AssemblyVersion>2.0.0.0</AssemblyVersion> 11 <AssemblyVersion>4.0.0.0</AssemblyVersion> 12 </AssemblyInfo> 13 <ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details.</ThreadSafetyStatement> 14 <Base> 15 <BaseTypeName>System.Object</BaseTypeName> 16 </Base> 17 <Interfaces /> 18 <Docs> 19 <remarks> 20 <attribution license="cc4" from="Microsoft" modified="false" /> 21 <para>A <see cref="T:System.Text.RegularExpressions.Capture" /> object is immutable and has no public constructor. Instances are returned through the <see cref="T:System.Text.RegularExpressions.CaptureCollection" /> object, which is returned by the Match.Captures and <see cref="P:System.Text.RegularExpressions.Group.Captures" /> properties. However, the Match.Captures property provides information about the same match as the <see cref="T:System.Text.RegularExpressions.Match" /> object.</para> 22 <para>If you do not apply a <format type="text/html"><a href="36b81212-6511-49ed-a8f1-ff080415312f">quantifier</a></format> to a capturing group, the <see cref="P:System.Text.RegularExpressions.Group.Captures" /> property returns a <see cref="T:System.Text.RegularExpressions.CaptureCollection" /> with a single <see cref="T:System.Text.RegularExpressions.Capture" /> object that provides information about the same capture as the <see cref="T:System.Text.RegularExpressions.Group" /> object. If you do apply a quantifier to a capturing group, the Group.Index, Group.Length, and Group.Value properties provide information only about the last captured group, whereas the <see cref="T:System.Text.RegularExpressions.Capture" /> objects in the <see cref="T:System.Text.RegularExpressions.CaptureCollection" /> provide information about all subexpression captures. The example provides an illustration.</para> 23 </remarks> 24 <summary> 25 <attribution license="cc4" from="Microsoft" modified="false" /> 26 <para>Represents the results from a single successful subexpression capture. </para> 27 </summary> 28 </Docs> 29 <Members> 30 <Member MemberName="Index"> 31 <MemberSignature Language="C#" Value="public int Index { get; }" /> 32 <MemberSignature Language="ILAsm" Value=".property instance int32 Index" /> 33 <MemberType>Property</MemberType> 34 <AssemblyInfo> 35 <AssemblyVersion>1.0.5000.0</AssemblyVersion> 36 <AssemblyVersion>2.0.0.0</AssemblyVersion> 37 <AssemblyVersion>4.0.0.0</AssemblyVersion> 38 </AssemblyInfo> 39 <ReturnValue> 40 <ReturnType>System.Int32</ReturnType> 41 </ReturnValue> 42 <Docs> 43 <value>To be added: an object of type 'int'</value> 44 <remarks>To be added</remarks> 45 <summary> 46 <attribution license="cc4" from="Microsoft" modified="false" /> 47 <para>The position in the original string where the first character of the captured substring is found.</para> 48 </summary> 49 </Docs> 50 </Member> 51 <Member MemberName="Length"> 52 <MemberSignature Language="C#" Value="public int Length { get; }" /> 53 <MemberSignature Language="ILAsm" Value=".property instance int32 Length" /> 54 <MemberType>Property</MemberType> 55 <AssemblyInfo> 56 <AssemblyVersion>1.0.5000.0</AssemblyVersion> 57 <AssemblyVersion>2.0.0.0</AssemblyVersion> 58 <AssemblyVersion>4.0.0.0</AssemblyVersion> 59 </AssemblyInfo> 60 <ReturnValue> 61 <ReturnType>System.Int32</ReturnType> 62 </ReturnValue> 63 <Docs> 64 <value>To be added: an object of type 'int'</value> 65 <remarks>To be added</remarks> 66 <summary> 67 <attribution license="cc4" from="Microsoft" modified="false" /> 68 <para>Gets the length of the captured substring.</para> 69 </summary> 70 </Docs> 71 </Member> 72 <Member MemberName="ToString"> 73 <MemberSignature Language="C#" Value="public override string ToString ();" /> 74 <MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance string ToString() cil managed" /> 75 <MemberType>Method</MemberType> 76 <AssemblyInfo> 77 <AssemblyVersion>1.0.5000.0</AssemblyVersion> 78 <AssemblyVersion>2.0.0.0</AssemblyVersion> 79 <AssemblyVersion>4.0.0.0</AssemblyVersion> 80 </AssemblyInfo> 81 <ReturnValue> 82 <ReturnType>System.String</ReturnType> 83 </ReturnValue> 84 <Parameters /> 85 <Docs> 86 <remarks> 87 <attribution license="cc4" from="Microsoft" modified="false" /> 88 <para>ToString is actually an internal call to the <see cref="P:System.Text.RegularExpressions.Capture.Value" /> property.</para> 89 </remarks> 90 <summary> 91 <attribution license="cc4" from="Microsoft" modified="false" /> 92 <para>Retrieves the captured substring from the input string by calling the <see cref="P:System.Text.RegularExpressions.Capture.Value" /> property. </para> 93 </summary> 94 <returns> 95 <attribution license="cc4" from="Microsoft" modified="false" /> 96 <para>The substring that was captured by the match.</para> 97 </returns> 98 </Docs> 99 </Member> 100 <Member MemberName="Value"> 101 <MemberSignature Language="C#" Value="public string Value { get; }" /> 102 <MemberSignature Language="ILAsm" Value=".property instance string Value" /> 103 <MemberType>Property</MemberType> 104 <AssemblyInfo> 105 <AssemblyVersion>1.0.5000.0</AssemblyVersion> 106 <AssemblyVersion>2.0.0.0</AssemblyVersion> 107 <AssemblyVersion>4.0.0.0</AssemblyVersion> 108 </AssemblyInfo> 109 <ReturnValue> 110 <ReturnType>System.String</ReturnType> 111 </ReturnValue> 112 <Docs> 113 <value>To be added: an object of type 'string'</value> 114 <remarks> 115 <attribution license="cc4" from="Microsoft" modified="false" /> 116 <para>If a call to the <see cref="M:System.Text.RegularExpressions.Regex.Match(System.String)" /> or <see cref="M:System.Text.RegularExpressions.Match.NextMatch" /> method fails to find a match, the value of the returned Match.Value property is <see cref="F:System.String.Empty" />. If the regular expression engine is unable to match a capturing group. the value of the returned Group.Value property is <see cref="F:System.String.Empty" />. See the second example for an illustration. </para> 117 </remarks> 118 <summary> 119 <attribution license="cc4" from="Microsoft" modified="false" /> 120 <para>Gets the captured substring from the input string.</para> 121 </summary> 122 </Docs> 123 </Member> 124 </Members> 125</Type>