Jo Shields 3c1f479b9d Imported Upstream version 4.0.0~alpha1
Former-commit-id: 806294f5ded97629b74c85c09952f2a74fe182d9
2015-04-07 09:35:12 +01:00

71 lines
2.3 KiB
C#

namespace System.Web.Services.Protocols {
using System;
using System.Security.Permissions;
/// <include file='doc\MatchAttribute.uex' path='docs/doc[@for="MatchAttribute"]/*' />
/// <devdoc>
/// <para>[To be supplied.]</para>
/// </devdoc>
[AttributeUsage(AttributeTargets.All)]
public sealed class MatchAttribute : System.Attribute {
string pattern;
int group = 1;
int capture = 0;
bool ignoreCase = false;
int repeats = -1;
/// <include file='doc\MatchAttribute.uex' path='docs/doc[@for="MatchAttribute.MatchAttribute"]/*' />
/// <devdoc>
/// <para>[To be supplied.]</para>
/// </devdoc>
public MatchAttribute(string pattern) {
this.pattern = pattern;
}
/// <include file='doc\MatchAttribute.uex' path='docs/doc[@for="MatchAttribute.Pattern"]/*' />
/// <devdoc>
/// <para>[To be supplied.]</para>
/// </devdoc>
public string Pattern {
get { return pattern == null ? string.Empty : pattern; }
set { pattern = value; }
}
/// <include file='doc\MatchAttribute.uex' path='docs/doc[@for="MatchAttribute.Group"]/*' />
/// <devdoc>
/// <para>[To be supplied.]</para>
/// </devdoc>
public int Group {
get { return group; }
set { group = value; }
}
/// <include file='doc\MatchAttribute.uex' path='docs/doc[@for="MatchAttribute.Capture"]/*' />
/// <devdoc>
/// <para>[To be supplied.]</para>
/// </devdoc>
public int Capture {
get { return capture; }
set { capture = value; }
}
/// <include file='doc\MatchAttribute.uex' path='docs/doc[@for="MatchAttribute.IgnoreCase"]/*' />
/// <devdoc>
/// <para>[To be supplied.]</para>
/// </devdoc>
public bool IgnoreCase {
get { return ignoreCase; }
set { ignoreCase = value; }
}
/// <include file='doc\MatchAttribute.uex' path='docs/doc[@for="MatchAttribute.MaxRepeats"]/*' />
/// <devdoc>
/// <para>[To be supplied.]</para>
/// </devdoc>
public int MaxRepeats {
get { return repeats; }
set { repeats = value; }
}
}
}