DocumentableItem.Documentation プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > DocumentableItem.Documentation プロパティの意味・解説 

DocumentableItem.Documentation プロパティ

DocumentableItem のインスタンステキスト ドキュメント取得または設定します

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

解説解説
使用例使用例

Documentation プロパティ一般的な使用法コード例次に示します

Imports System
Imports System.Web.Services.Description
Imports Microsoft.VisualBasic

Class DocumentableItemSample
   Public Shared Sub Main()
      Dim myServiceDescription As ServiceDescription
 = _
                           ServiceDescription.Read("MathService_vb.wsdl")
      Console.WriteLine("Documentation Element for type is ")
      PrintDocumentation(myServiceDescription.Types)
      Dim myPortType As PortType
      For Each myPortType In
  myServiceDescription.PortTypes
         Console.WriteLine("Documentation Element for Port Type
 {0} is ", myPortType.Name)
         PrintDocumentation(myPortType)
      Next myPortType
      Dim myBinding As Binding
      For Each myBinding In
  myServiceDescription.Bindings
         Console.WriteLine("Documentation Element for Port Type
 {0} is ", myBinding.Name)
         PrintDocumentation(myBinding)
      Next myBinding
   End Sub 'Main

   ' Prints documentation associated with a wsdl element.
   Public Shared Sub PrintDocumentation(myItem
 As DocumentableItem)
      Console.WriteLine(ControlChars.Tab + myItem.Documentation)
   End Sub 'PrintDocumentation
End Class 'DocumentableItemSample
using System;
using System.Web.Services.Description;

class DocumentableItemSample
{
   public static void Main()
   {
      ServiceDescription myServiceDescription = ServiceDescription.Read("MathService_cs.wsdl");
      Console.WriteLine("Documentation Element for type is
 ");
      PrintDocumentation(myServiceDescription.Types);
      foreach(PortType myPortType in myServiceDescription.PortTypes)
      {
         Console.WriteLine("Documentation Element for Port
 Type {0} is ",myPortType.Name);
         PrintDocumentation(myPortType);
      }
      foreach(Binding myBinding in myServiceDescription.Bindings)
      {
         Console.WriteLine("Documentation Element for Port
 Type {0} is ",myBinding.Name);
         PrintDocumentation(myBinding);
      }
   }
   // Prints documentation associated with a wsdl element.
   public static void PrintDocumentation(DocumentableItem
 myItem)
   {
      Console.WriteLine("\t" + myItem.Documentation);
   }
}
#using <System.dll>
#using <System.Xml.dll>
#using <System.Web.Services.dll>

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

// Prints documentation associated with a wsdl element.
void PrintDocumentation( DocumentableItem^ myItem )
{
   Console::WriteLine( "\t {0}", myItem->Documentation );
}

int main()
{
   ServiceDescription^ myServiceDescription = ServiceDescription::Read( "MathService_cpp.wsdl"
 );
   Console::WriteLine( "Documentation Element for type is
 " );
   PrintDocumentation( myServiceDescription->Types );
   IEnumerator^ myEnum = myServiceDescription->PortTypes->GetEnumerator();
   while ( myEnum->MoveNext() )
   {
      PortType^ myPortType = safe_cast<PortType^>(myEnum->Current);
      Console::WriteLine( "Documentation Element for Port
 Type {0} is ", myPortType->Name );
      PrintDocumentation( myPortType );
   }

   myEnum = myServiceDescription->Bindings->GetEnumerator();
   while ( myEnum->MoveNext() )
   {
      Binding^ myBinding = safe_cast<Binding^>(myEnum->Current);
      Console::WriteLine( "Documentation Element for Port
 Type {0} is ", myBinding->Name );
      PrintDocumentation( myBinding );
   }
}
import System.*;
import System.Web.Services.Description.*;

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

        Console.WriteLine("Documentation Element for type is
 ");
        PrintDocumentation(myServiceDescription.get_Types());
        PortType myPortType = null;
        for (int iCtr=0; iCtr< myServiceDescription.get_PortTypes().
            get_Count(); iCtr++ ) {
            myPortType = myServiceDescription.get_PortTypes().get_Item(iCtr);
            Console.WriteLine("Documentation Element for
 Port Type {0} is ",
                myPortType.get_Name());
            PrintDocumentation(myPortType);
        }
        Binding myBinding = null;
        for (int iCtr=0; iCtr< myServiceDescription.get_Bindings().
            get_Count(); iCtr++ ) {
            myBinding = myServiceDescription.get_Bindings().get_Item(iCtr);
            Console.WriteLine("Documentation Element for
 Port Type {0} is ",
                myBinding.get_Name());
            PrintDocumentation(myBinding);
        }
    } //main

    // Prints documentation associated with a wsdl element.
    public static void PrintDocumentation(DocumentableItem
 myItem)
    {
        Console.WriteLine("\t" + myItem.get_Documentation());
    } //PrintDocumentation
} //DocumentableItemSample
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DocumentableItem クラス
DocumentableItem メンバ
System.Web.Services.Description 名前空間


このページでは「.NET Framework クラス ライブラリ リファレンス」からDocumentableItem.Documentation プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からDocumentableItem.Documentation プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からDocumentableItem.Documentation プロパティ を検索

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

辞書ショートカット

すべての辞書の索引

DocumentableItem.Documentation プロパティのお隣キーワード
検索ランキング

   

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



DocumentableItem.Documentation プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS