PatternMatcher(Type) 构造函数

定义

根据输入类型创建 PatternMatcher 实例。Creates a PatternMatcher instance based on the input type.

public:
 PatternMatcher(Type ^ type);
public PatternMatcher (Type type);
new System.Web.Services.Protocols.PatternMatcher : Type -> System.Web.Services.Protocols.PatternMatcher

参数

type
Type

一个 Type,它指定 Web 方法的返回类型。A Type that specifies the return type for a Web method.

注解

PatternMatcher 实例的属性(例如,用于生成搜索目标的正则表达式)将根据应用于返回类型字段的 MatchAttribute 属性进行填充。The PatternMatcher instance's properties, such as the regular expression to make the search target, are populated based on MatchAttribute attributes applied to fields of the return type.

适用于