MimeTextMatchとは? わかりやすく解説

MimeTextMatch クラス

HTTP 伝送での検索対象テキスト パターン表します。このクラス継承できません。

名前空間: System.Web.Services.Description
アセンブリ: System.Web.Services (system.web.services.dll 内)
構文構文

Public NotInheritable Class
 MimeTextMatch
Dim instance As MimeTextMatch
public sealed class MimeTextMatch
public ref class MimeTextMatch sealed
public final class MimeTextMatch
public final class MimeTextMatch
解説解説
使用例使用例

MimeTextMatch クラスによって公開されるプロパティメソッド使用する例を次に示します

Imports System
Imports System.Web.Services.Description
Imports System.Collections
Imports System.Xml

Class MyTextBinding
   Public Shared Sub Main()
      Try
         Dim myServiceDescription As ServiceDescription
 = _
               ServiceDescription.Read("MimeText_Binding_Match_8_Input_vb.wsdl")

         ' Create a Binding.
         Dim myBinding As New
 Binding()

         ' Initialize the Name property of the Binding.
         myBinding.Name = "MimeText_Binding_MatchServiceHttpPost"
         Dim myXmlQualifiedName As _
               New XmlQualifiedName("s0:MimeText_Binding_MatchServiceHttpPost")
         myBinding.Type = myXmlQualifiedName

         ' Create an HttpBinding.
         Dim myHttpBinding As New
 HttpBinding()
         myHttpBinding.Verb = "POST"

         ' Add the HttpBinding to the Binding.
         myBinding.Extensions.Add(myHttpBinding)

         ' Create an OperationBinding.
         Dim myOperationBinding As New
 OperationBinding()
         myOperationBinding.Name = "AddNumbers"

         Dim myHttpOperationBinding As New
 HttpOperationBinding()
         myHttpOperationBinding.Location = "/AddNumbers"

         ' Add the HttpOperationBinding to the OperationBinding.
         myOperationBinding.Extensions.Add(myHttpOperationBinding)

         ' Create an InputBinding.
         Dim myInputBinding As New
 InputBinding()
         Dim postMimeContentbinding As New
 MimeContentBinding()
         postMimeContentbinding.Type = "application/x-www-form-urlencoded"
         myInputBinding.Extensions.Add(postMimeContentbinding)

         ' Add the InputBinding to the OperationBinding.
         myOperationBinding.Input = myInputBinding
         ' 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
         ' Add the OutputBinding to the OperationBinding.
         myOperationBinding.Output = myOutputBinding

         ' Add the OperationBinding to the Binding.
         myBinding.Operations.Add(myOperationBinding)

         ' Add the Binding to the BindingCollection of the ServiceDescription.
         myServiceDescription.Bindings.Add(myBinding)

         ' Write the ServiceDescription as a WSDL file.
         myServiceDescription.Write("MimeText_Binding_Match_8_Output_vb.wsdl")
         Console.WriteLine("WSDL file named " &
 _
            "'MimeText_Binding_Match_8_Output_vb.wsdl' was"
 & _
            " created successfully.")
      Catch e As Exception
         Console.WriteLine("Exception: {0}", e.Message)
      End Try
   End Sub 'Main
End Class 'MyTextBinding
using System;
using System.Web.Services.Description;
using System.Collections;
using System.Xml;

class MyTextBinding
{
   public static void Main()
   {
      try
      {
         ServiceDescription myServiceDescription = 
            ServiceDescription.Read("MimeText_Binding_Match_8_Input_CS.wsdl");

         // Create a Binding.
         Binding myBinding = new Binding();

         // Initialize the Name property of the Binding.
         myBinding.Name = "MimeText_Binding_MatchServiceHttpPost";
         XmlQualifiedName myXmlQualifiedName = 
            new XmlQualifiedName("s0:MimeText_Binding_MatchServiceHttpPost");
         myBinding.Type = myXmlQualifiedName;

         // Create an HttpBinding.
         HttpBinding myHttpBinding = new HttpBinding();
         myHttpBinding.Verb="POST";

         // Add the HttpBinding to the Binding.
         myBinding.Extensions.Add(myHttpBinding);

         // Create an OperationBinding.
         OperationBinding myOperationBinding = new OperationBinding();
         myOperationBinding.Name = "AddNumbers";

         HttpOperationBinding myHttpOperationBinding = 
            new HttpOperationBinding();
         myHttpOperationBinding.Location="/AddNumbers";

         // Add the HttpOperationBinding to the OperationBinding.
         myOperationBinding.Extensions.Add(myHttpOperationBinding);

         // Create an InputBinding.
         InputBinding myInputBinding = new InputBinding();
         MimeContentBinding postMimeContentbinding = new MimeContentBinding();
         postMimeContentbinding.Type = "application/x-www-form-urlencoded";
         myInputBinding.Extensions.Add(postMimeContentbinding);

         // Add the InputBinding to the OperationBinding.
         myOperationBinding.Input = myInputBinding;      
               // 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; 
         // Add the OutputBinding to the OperationBinding.
         myOperationBinding.Output = myOutputBinding; 

         // Add the OperationBinding to the Binding.
         myBinding.Operations.Add(myOperationBinding);

         // Add the Binding to the BindingCollection of the ServiceDescription.
         myServiceDescription.Bindings.Add(myBinding);

         // Write the ServiceDescription as a WSDL file.
         myServiceDescription.Write("MimeText_Binding_Match_8_Output_CS.wsdl");
         Console.WriteLine(
            "WSDL file named 'MimeText_Binding_Match_8_Output_CS.wsdl' was"
            + " created successfully.");
      }
      catch(Exception e)
      {
         Console.WriteLine( "Exception: {0}", e.Message );
      }
    }
}
#using <System.Xml.dll>
#using <System.Web.Services.dll>
#using <System.dll>

using namespace System;
using namespace System::Web::Services::Description;
using namespace System::Collections;
using namespace System::Xml;

int main()
{
   try
   {
      ServiceDescription^ myServiceDescription = ServiceDescription::Read( "MimeText_Binding_Match_8_Input_CPP.wsdl"
 );

      // Create a Binding.
      Binding^ myBinding = gcnew Binding;

      // Initialize the Name property of the Binding.
      myBinding->Name = "MimeText_Binding_MatchServiceHttpPost";
      XmlQualifiedName^ myXmlQualifiedName = gcnew XmlQualifiedName( "s0:MimeText_Binding_MatchServiceHttpPost"
 );
      myBinding->Type = myXmlQualifiedName;

      // Create an HttpBinding.
      HttpBinding^ myHttpBinding = gcnew HttpBinding;
      myHttpBinding->Verb = "POST";

      // Add the HttpBinding to the Binding.
      myBinding->Extensions->Add( myHttpBinding );

      // Create an OperationBinding.
      OperationBinding^ myOperationBinding = gcnew OperationBinding;
      myOperationBinding->Name = "AddNumbers";
      HttpOperationBinding^ myHttpOperationBinding = gcnew HttpOperationBinding;
      myHttpOperationBinding->Location = "/AddNumbers";

      // Add the HttpOperationBinding to the OperationBinding.
      myOperationBinding->Extensions->Add( myHttpOperationBinding );

      // Create an InputBinding.
      InputBinding^ myInputBinding = gcnew InputBinding;
      MimeContentBinding^ postMimeContentbinding = gcnew MimeContentBinding;
      postMimeContentbinding->Type = "application/x-www-form-urlencoded";
      myInputBinding->Extensions->Add( postMimeContentbinding );

      // Add the InputBinding to the OperationBinding.
      myOperationBinding->Input = myInputBinding;

      // 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&gt;(.*?)&lt;";
      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;

      // Add the OutputBinding to the OperationBinding.
      myOperationBinding->Output = myOutputBinding;

      // Add the OperationBinding to the Binding.
      myBinding->Operations->Add( myOperationBinding );

      // Add the Binding to the BindingCollection of the ServiceDescription.
      myServiceDescription->Bindings->Add( myBinding );

      // Write the ServiceDescription as a WSDL file.
      myServiceDescription->Write( "MimeText_Binding_Match_8_Output_CPP.wsdl"
 );
      Console::WriteLine( "WSDL file named 'MimeText_Binding_Match_8_Output_CPP.wsdl'
 was"
      " created successfully." );
   }
   catch ( Exception^ e ) 
   {
      Console::WriteLine( "Exception: {0}", e->Message );
   }
}
import System.*;
import System.Web.Services.Description.*;
import System.Collections.*;
import System.Xml.*;

class MyTextBinding
{
    public static void main(String[]
 args)
    {
        try {
            ServiceDescription myServiceDescription = ServiceDescription.
                Read("MimeText_Binding_Match_8_Input_JSL.wsdl");

            // Create a Binding.
            Binding myBinding = new Binding();

            // Initialize the Name property of the Binding.
            myBinding.set_Name("MimeText_Binding_MatchServiceHttpPost");

            XmlQualifiedName myXmlQualifiedName = new XmlQualifiedName(
                "s0:MimeText_Binding_MatchServiceHttpPost");
            myBinding.set_Type(myXmlQualifiedName);

            // Create an HttpBinding.
            HttpBinding myHttpBinding = new HttpBinding();
            myHttpBinding.set_Verb("POST");
            
            // Add the HttpBinding to the Binding.
            myBinding.get_Extensions().Add(myHttpBinding);

            // Create an OperationBinding.
            OperationBinding myOperationBinding = new OperationBinding();
            myOperationBinding.set_Name("AddNumbers");
            HttpOperationBinding myHttpOperationBinding = 
                new HttpOperationBinding();
            myHttpOperationBinding.set_Location("/AddNumbers");

            // Add the HttpOperationBinding to the OperationBinding.
            myOperationBinding.get_Extensions().Add(myHttpOperationBinding);

            // Create an InputBinding.
            InputBinding myInputBinding = new InputBinding();
            MimeContentBinding postMimeContentbinding = new MimeContentBinding();
            postMimeContentbinding.set_Type("application/x-www-form-urlencoded");
            myInputBinding.get_Extensions().Add(postMimeContentbinding);

            // Add the InputBinding to the OperationBinding.
            myOperationBinding.set_Input(myInputBinding);

            // 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.set_Name("Title");
            myMimeTextMatch.set_Type("*/*");
            myMimeTextMatch.set_Pattern("'TITLE&gt;(.*?)&lt;");
            myMimeTextMatch.set_IgnoreCase(true);

            // Initialize a MimeTextMatchCollection.
            myMimeTextMatchCollection = myMimeTextBinding.get_Matches();

            // Add the MimeTextMatch to the MimeTextMatchCollection.
            myMimeTextMatchCollection.Add(myMimeTextMatch);
            myOutputBinding.get_Extensions().Add(myMimeTextBinding);

            // Add the OutputBinding to the OperationBinding.
            myOperationBinding.set_Output(myOutputBinding);

            // Add the OutputBinding to the OperationBinding.
            myOperationBinding.set_Output(myOutputBinding);

            // Add the OperationBinding to the Binding.
            myBinding.get_Operations().Add(myOperationBinding);

            // Add the Binding to the BindingCollection of the 
            // ServiceDescription.
            myServiceDescription.get_Bindings().Add(myBinding);

            // Write the ServiceDescription as a WSDL file.
            myServiceDescription.Write("MimeText_Binding_Match_8_Output_JSL."
                + "wsdl");
            Console.WriteLine("WSDL file named "
                + "'MimeText_Binding_Match_8_Output_JSL.wsdl' was" 
                + " created successfully.");
        }
        catch (System.Exception e) {
            Console.WriteLine("Exception: {0}", e.get_Message());
        }
    } //main
} //MyTextBinding
継承階層継承階層
System.Object
  System.Web.Services.Description.MimeTextMatch
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
MimeTextMatch メンバ
System.Web.Services.Description 名前空間

MimeTextMatch コンストラクタ


MimeTextMatch プロパティ


パブリック プロパティパブリック プロパティ

  名前 説明
パブリック プロパティ Capture グループ内にある MimeTextMatch の 0 から始まるインデックス番号を示す値を取得または設定します
パブリック プロパティ Group テキスト検索結果配置するグループの数を示す値を取得または設定します
パブリック プロパティ IgnoreCase 検索時に検索対象テキスト大文字小文字区別しないかどうかを示す値を取得または設定します
パブリック プロパティ Matches 検索によって検出された、テキスト パターン一致コレクション取得します
パブリック プロパティ Name MimeTextMatch の名前を取得または設定します
パブリック プロパティ Pattern 検索対象テキスト パターン取得または設定します
パブリック プロパティ Repeats 検索実行回数を示す値を取得または設定します
パブリック プロパティ RepeatsString 検索実行回数を示す値を取得または設定します
パブリック プロパティ Type 検索対象テキストMIME 形式を示す値を取得または設定します
参照参照

関連項目

MimeTextMatch クラス
System.Web.Services.Description 名前空間

MimeTextMatch メソッド


MimeTextMatch メンバ

HTTP 伝送での検索対象テキスト パターン表します。このクラス継承できません。

MimeTextMatch データ型公開されるメンバを以下の表に示します


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド MimeTextMatch  
パブリック プロパティパブリック プロパティ
  名前 説明
パブリック プロパティ Capture グループ内にある MimeTextMatch の 0 から始まるインデックス番号を示す値を取得または設定します
パブリック プロパティ Group テキスト検索結果配置するグループの数を示す値を取得または設定します
パブリック プロパティ IgnoreCase 検索時に検索対象テキスト大文字小文字区別しないかどうかを示す値を取得または設定します
パブリック プロパティ Matches 検索によって検出された、テキスト パターン一致コレクション取得します
パブリック プロパティ Name MimeTextMatch の名前を取得または設定します
パブリック プロパティ Pattern 検索対象テキスト パターン取得または設定します
パブリック プロパティ Repeats 検索実行回数を示す値を取得または設定します
パブリック プロパティ RepeatsString 検索実行回数を示す値を取得または設定します
パブリック プロパティ Type 検索対象テキストMIME 形式を示す値を取得または設定します
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

MimeTextMatch クラス
System.Web.Services.Description 名前空間



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「MimeTextMatch」の関連用語

MimeTextMatchのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



MimeTextMatchのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS