MimeTextBinding.Matches 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取为其搜索 HTTP 传输的 MIME 文本模式的集合。
public:
property System::Web::Services::Description::MimeTextMatchCollection ^ Matches { System::Web::Services::Description::MimeTextMatchCollection ^ get(); };
public System.Web.Services.Description.MimeTextMatchCollection Matches { get; }
member this.Matches : System.Web.Services.Description.MimeTextMatchCollection
Public ReadOnly Property Matches As MimeTextMatchCollection
属性值
表示要搜索的 MIME 文本模式的 MimeTextMatchCollection。
示例
以下示例演示如何使用 Matches
属性。
// Create an OutputBinding.
OutputBinding^ myOutputBinding = gcnew OutputBinding;
// Create a MimeTextBinding.
MimeTextBinding^ myMimeTextBinding = gcnew MimeTextBinding;
// Create a MimeTextMatch.
MimeTextMatch^ myMimeTextMatch = gcnew MimeTextMatch;
MimeTextMatchCollection^ myMimeTextMatchCollection;
// Initialize properties of the MimeTextMatch.
myMimeTextMatch->Name = "Title";
myMimeTextMatch->Type = "*/*";
myMimeTextMatch->Pattern = "'TITLE>(.*?)<";
myMimeTextMatch->IgnoreCase = true;
// Initialize a MimeTextMatchCollection.
myMimeTextMatchCollection = myMimeTextBinding->Matches;
// Add the MimeTextMatch to the MimeTextMatchCollection.
myMimeTextMatchCollection->Add( myMimeTextMatch );
myOutputBinding->Extensions->Add( myMimeTextBinding );
// Add the OutputBinding to the OperationBinding.
myOperationBinding->Output = myOutputBinding;
// Create an OutputBinding.
OutputBinding myOutputBinding = new OutputBinding();
// Create a MimeTextBinding.
MimeTextBinding myMimeTextBinding = new MimeTextBinding();
// Create a MimeTextMatch.
MimeTextMatch myMimeTextMatch = new MimeTextMatch();
MimeTextMatchCollection myMimeTextMatchCollection ;
// Initialize properties of the MimeTextMatch.
myMimeTextMatch.Name = "Title";
myMimeTextMatch.Type = "*/*";
myMimeTextMatch.Pattern = "'TITLE>(.*?)<";
myMimeTextMatch.IgnoreCase = true;
// Initialize a MimeTextMatchCollection.
myMimeTextMatchCollection = myMimeTextBinding.Matches;
// Add the MimeTextMatch to the MimeTextMatchCollection.
myMimeTextMatchCollection.Add( myMimeTextMatch );
myOutputBinding.Extensions.Add( myMimeTextBinding );
// Add the OutputBinding to the OperationBinding.
myOperationBinding.Output = myOutputBinding;
' Create an OutputBinding.
Dim myOutputBinding As New OutputBinding()
' Create a MimeTextBinding.
Dim myMimeTextBinding As New MimeTextBinding()
' Create a MimeTextMatch.
Dim myMimeTextMatch As New MimeTextMatch()
Dim myMimeTextMatchCollection As MimeTextMatchCollection
' Initialize properties of the MimeTextMatch.
myMimeTextMatch.Name = "Title"
myMimeTextMatch.Type = "*/*"
myMimeTextMatch.Pattern = "'TITLE>(.*?)<"
myMimeTextMatch.IgnoreCase = True
' Initialize a MimeTextMatchCollection.
myMimeTextMatchCollection = myMimeTextBinding.Matches
' Add the MimeTextMatch to the MimeTextMatchCollection.
myMimeTextMatchCollection.Add(myMimeTextMatch)
myOutputBinding.Extensions.Add(myMimeTextBinding)
' Add the OutputBinding to the OperationBinding.
myOperationBinding.Output = myOutputBinding
注解
有关为 XML Web 服务指定协议的详细信息,请参阅 XML Web Services Using ASP.NET。 有关 Web 服务描述语言 (WSDL) 的详细信息,请参阅 WSDL 规范。