Operation クラス
アセンブリ: System.Web.Services (system.web.services.dll 内)


Operation クラスは、portType 要素で囲まれた WSDL (Web Services Description Language) operation 要素に対応します。WSDL の詳細については、http://www.w3.org/TR/wsdl/ の仕様を参照してください。

Operation クラスの一般的な使用例を次に示します。この例では、HTTP POST プロトコルをサポートする PortType を持たない ServiceDescription を使用します。続いて、POST をサポートする PortType のインスタンスを追加し、新しい WSDL コントラクトを出力します。
Imports System Imports System.Web.Services.Description Imports System.Collections Imports System.Xml Class MyOperationClass Public Shared Sub Main() Dim myDescription As ServiceDescription = ServiceDescription.Read("Operation_5_Input_VB.wsdl") ' Create a 'PortType' object. Dim myPortType As New PortType() myPortType.Name = "OperationServiceHttpPost" Dim myOperation As Operation = CreateOperation("AddNumbers", "s0:AddNumbersHttpPostIn", _ "s0:AddNumbersHttpPostOut") myPortType.Operations.Add(myOperation) ' Get the PortType of the Operation. Dim myPort As PortType = myOperation.PortType Console.WriteLine( _ "The port type of the operation is: " & myPort.Name) ' Add the 'PortType's to 'PortTypeCollection' of 'ServiceDescription'. myDescription.PortTypes.Add(myPortType) ' Write the 'ServiceDescription' as a WSDL file. myDescription.Write("Operation_5_Output_VB.wsdl") Console.WriteLine("WSDL file with name 'Operation_5_Output_VB.wsdl'" + _ "file created Successfully") End Sub 'Main Public Shared Function CreateOperation(myOperationName As String, myInputMesg As String, _ myOutputMesg As String) As Operation ' Create an Operation. Dim myOperation As New Operation() myOperation.Name = myOperationName Dim myInput As OperationMessage = _ CType(New OperationInput(), OperationMessage) myInput.Message = New XmlQualifiedName(myInputMesg) Dim myOutput As OperationMessage = _ CType(New OperationOutput(), OperationMessage) myOutput.Message = New XmlQualifiedName(myOutputMesg) ' Add messages to the OperationMessageCollection. myOperation.Messages.Add(myInput) myOperation.Messages.Add(myOutput) Console.WriteLine("Operation name is: " & myOperation.Name) Return myOperation End Function 'CreateOperation End Class 'MyOperationClass
using System; using System.Web.Services.Description; using System.Collections; using System.Xml; class MyOperationClass { public static void Main() { ServiceDescription myDescription = ServiceDescription.Read("Operation_5_Input_CS.wsdl"); // Create a 'PortType' object. PortType myPortType = new PortType(); myPortType.Name = "OperationServiceHttpPost"; Operation myOperation = CreateOperation ("AddNumbers","s0:AddNumbersHttpPostIn","s0:AddNumbersHttpPostOut"); myPortType.Operations.Add(myOperation); // Get the PortType of the Operation. PortType myPort = myOperation.PortType; Console.WriteLine( "The port type of the operation is: " + myPort.Name); // Add the 'PortType's to 'PortTypeCollection' of 'ServiceDescription'. myDescription.PortTypes.Add(myPortType); // Write the 'ServiceDescription' as a WSDL file. myDescription.Write("Operation_5_Output_CS.wsdl"); Console.WriteLine("WSDL file with name 'Operation_5_Output_CS.wsdl' file created Successfully"); } public static Operation CreateOperation(string myOperationName,string myInputMesg,string myOutputMesg) { // Create an Operation. Operation myOperation = new Operation(); myOperation.Name = myOperationName; OperationMessage myInput = (OperationMessage)new OperationInput(); myInput.Message = new XmlQualifiedName(myInputMesg); OperationMessage myOutput = (OperationMessage)new OperationOutput(); myOutput.Message = new XmlQualifiedName(myOutputMesg); // Add messages to the OperationMessageCollection. myOperation.Messages.Add(myInput); myOperation.Messages.Add(myOutput); Console.WriteLine("Operation name is: " + myOperation.Name); return myOperation; } }
#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; Operation^ CreateOperation( String^ myOperationName, String^ myInputMesg, String^ myOutputMesg ) { // Create an Operation. Operation^ myOperation = gcnew Operation; myOperation->Name = myOperationName; OperationMessage^ myInput = dynamic_cast<OperationMessage^>(gcnew OperationInput); myInput->Message = gcnew XmlQualifiedName( myInputMesg ); OperationMessage^ myOutput = dynamic_cast<OperationMessage^>(gcnew OperationOutput); myOutput->Message = gcnew XmlQualifiedName( myOutputMesg ); // Add messages to the OperationMessageCollection. myOperation->Messages->Add( myInput ); myOperation->Messages->Add( myOutput ); Console::WriteLine( "Operation name is: {0}", myOperation->Name ); return myOperation; } int main() { ServiceDescription^ myDescription = ServiceDescription::Read( "Operation_5_Input_CS.wsdl" ); // Create a 'PortType' object. PortType^ myPortType = gcnew PortType; myPortType->Name = "OperationServiceHttpPost"; Operation^ myOperation = CreateOperation( "AddNumbers", "s0:AddNumbersHttpPostIn", "s0:AddNumbersHttpPostOut" ); myPortType->Operations->Add( myOperation ); // Get the PortType of the Operation. PortType^ myPort = myOperation->PortType; Console::WriteLine( "The port type of the operation is: {0}", myPort->Name ); // Add the 'PortType's to 'PortTypeCollection' of 'ServiceDescription'. myDescription->PortTypes->Add( myPortType ); // Write the 'ServiceDescription' as a WSDL file. myDescription->Write( "Operation_5_Output_CS.wsdl" ); Console::WriteLine( "WSDL file with name 'Operation_5_Output_CS.wsdl' file created Successfully" ); }
import System.*; import System.Web.Services.Description.*; import System.Collections.*; import System.Xml.*; class MyOperationClass { public static void main(String[] args) { ServiceDescription myDescription = ServiceDescription. Read("Operation_5_Input_JSL.wsdl"); // Create a 'PortType' object. PortType myPortType = new PortType(); myPortType.set_Name("OperationServiceHttpPost"); Operation myOperation = CreateOperation("AddNumbers", "s0:AddNumbersHttpPostIn", "s0:AddNumbersHttpPostOut"); myPortType.get_Operations().Add(myOperation); // Get the PortType of the Operation. PortType myPort = myOperation.get_PortType(); Console.WriteLine("The port type of the operation is: " + myPort.get_Name()); // Add the 'PortType's to 'PortTypeCollection' of 'ServiceDescription'. myDescription.get_PortTypes().Add(myPortType); // Write the 'ServiceDescription' as a WSDL file. myDescription.Write("Operation_5_Output_JSL.wsdl"); Console.WriteLine("WSDL file with name 'Operation_5_Output_JSL.wsdl' " + "file created Successfully"); } //main public static Operation CreateOperation(String myOperationName, String myInputMesg, String myOutputMesg) { // Create an Operation. Operation myOperation = new Operation(); myOperation.set_Name(myOperationName); OperationMessage myInput = (OperationMessage)new OperationInput(); myInput.set_Message(new XmlQualifiedName(myInputMesg)); OperationMessage myOutput = (OperationMessage)new OperationOutput(); myOutput.set_Message(new XmlQualifiedName(myOutputMesg)); // Add messages to the OperationMessageCollection. myOperation.get_Messages().Add(myInput); myOperation.get_Messages().Add(myOutput); Console.WriteLine("Operation name is: " + myOperation.get_Name()); return myOperation; } //CreateOperation } //MyOperationClass

System.Web.Services.Description.DocumentableItem
System.Web.Services.Description.NamedItem
System.Web.Services.Description.Operation


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Operation コンストラクタ
アセンブリ: System.Web.Services (system.web.services.dll 内)


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Operation プロパティ

名前 | 説明 | |
---|---|---|
![]() | Documentation | DocumentableItem のインスタンスのテキスト ドキュメントを取得または設定します。 ( DocumentableItem から継承されます。) |
![]() | DocumentationElement | DocumentableItem のドキュメント要素を取得または設定します。 ( DocumentableItem から継承されます。) |
![]() | ExtensibleAttributes | Web Services Interoperability (WS-I) Basic Profile 1.1 に準拠する WSDL の属性の拡張機能を表す XmlAttribute 型の配列を取得または設定します。 ( DocumentableItem から継承されます。) |
![]() | Extensions | オーバーライドされます。 この Operation に関連付けられている ServiceDescriptionFormatExtensionCollection を取得します。 |
![]() | Faults | 現在の Operation で定義されている違反またはエラー メッセージのコレクションを取得します。 |
![]() | Messages | 現在の Operation で定義されている Message クラスのインスタンスのコレクションを取得します。 |
![]() | Name | 項目の名前を取得または設定します。 ( NamedItem から継承されます。) |
![]() | Namespaces | ServiceDescription オブジェクトが生成されるときに名前空間プレフィックスと名前空間を保持するために使用する、名前空間プレフィックスと名前空間のディクショナリを取得または設定します。 ( DocumentableItem から継承されます。) |
![]() | ParameterOrder | ParameterOrderString 内に含まれる要素の配列を取得または設定します。 |
![]() | ParameterOrderString | 要求応答操作または請求応答操作に関する仕様を指示する、オプションのリモート プロシージャ コール (RPC: Remote Procedure Call) シグニチャを取得または設定します。 |
![]() | PortType | Operation がメンバとして含まれている PortType を取得します。 |

Operation メソッド

名前 | 説明 | |
---|---|---|
![]() | Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 ( Object から継承されます。) |
![]() | GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 ( Object から継承されます。) |
![]() | GetType | 現在のインスタンスの Type を取得します。 ( Object から継承されます。) |
![]() | IsBoundBy | 指定した OperationBinding が Operation と一致するかどうかを示す値を返します。 |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。) |
![]() | ToString | 現在の Object を表す String を返します。 ( Object から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 ( Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 ( Object から継承されます。) |

Operation メンバ
XML Web サービスでサポートされるアクションの抽象定義を提供します。このクラスは継承できません。
Operation データ型で公開されるメンバを以下の表に示します。

名前 | 説明 | |
---|---|---|
![]() | Operation |

名前 | 説明 | |
---|---|---|
![]() | Documentation | DocumentableItem のインスタンスのテキスト ドキュメントを取得または設定します。(DocumentableItem から継承されます。) |
![]() | DocumentationElement | DocumentableItem のドキュメント要素を取得または設定します。(DocumentableItem から継承されます。) |
![]() | ExtensibleAttributes | Web Services Interoperability (WS-I) Basic Profile 1.1 に準拠する WSDL の属性の拡張機能を表す XmlAttribute 型の配列を取得または設定します。(DocumentableItem から継承されます。) |
![]() | Extensions | オーバーライドされます。 この Operation に関連付けられている ServiceDescriptionFormatExtensionCollection を取得します。 |
![]() | Faults | 現在の Operation で定義されている違反またはエラー メッセージのコレクションを取得します。 |
![]() | Messages | 現在の Operation で定義されている Message クラスのインスタンスのコレクションを取得します。 |
![]() | Name | 項目の名前を取得または設定します。(NamedItem から継承されます。) |
![]() | Namespaces | ServiceDescription オブジェクトが生成されるときに名前空間プレフィックスと名前空間を保持するために使用する、名前空間プレフィックスと名前空間のディクショナリを取得または設定します。(DocumentableItem から継承されます。) |
![]() | ParameterOrder | ParameterOrderString 内に含まれる要素の配列を取得または設定します。 |
![]() | ParameterOrderString | 要求応答操作または請求応答操作に関する仕様を指示する、オプションのリモート プロシージャ コール (RPC: Remote Procedure Call) シグニチャを取得または設定します。 |
![]() | PortType | Operation がメンバとして含まれている PortType を取得します。 |

名前 | 説明 | |
---|---|---|
![]() | Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 (Object から継承されます。) |
![]() | GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 (Object から継承されます。) |
![]() | GetType | 現在のインスタンスの Type を取得します。 (Object から継承されます。) |
![]() | IsBoundBy | 指定した OperationBinding が Operation と一致するかどうかを示す値を返します。 |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。) |
![]() | ToString | 現在の Object を表す String を返します。 (Object から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 (Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 (Object から継承されます。) |

Weblioに収録されているすべての辞書からoperationを検索する場合は、下記のリンクをクリックしてください。

「operation」に関係したコラム
FXのチャート分析ソフトMT4で10分足や2時間足などを表示するには
FX(外国為替証拠金取引)のチャート分析ソフトMT4(Meta Trader 4)では、次の時間足の表示ができます。ティック1分足5分足15分足30分足1時間足4時間足日足週足MT4では、10分足や1...
- operationのページへのリンク