This documentation is archived and is not being maintained.
DocumentableItem::Documentation Property
Visual Studio 2010
Gets or sets the text documentation for the instance of the DocumentableItem.
Assembly: System.Web.Services (in System.Web.Services.dll)
Property Value
Type: System::StringA string that represents the documentation for the DocumentableItem.
The following code example demonstrates a typical usage of the Documentation property.
#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 ); } }
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: