This documentation is archived and is not being maintained.
MimeContentBinding::Namespace Field
Visual Studio 2010
Specifies the URI for the XML namespace of the MimeContentBinding class. This field is constant.
Assembly: System.Web.Services (in System.Web.Services.dll)
ServiceDescription^ myServiceDescription = ServiceDescription::Read( "MimeContentSample_cpp.wsdl" ); // Get the Binding. Binding^ myBinding = myServiceDescription->Bindings[ "b1" ]; // Get the first OperationBinding. OperationBinding^ myOperationBinding = myBinding->Operations[ 0 ]; OutputBinding^ myOutputBinding = myOperationBinding->Output; ServiceDescriptionFormatExtensionCollection ^ myServiceDescriptionFormatExtensionCollection = myOutputBinding->Extensions; // Find all MimeContentBinding objects in extensions. array<MimeContentBinding^>^myMimeContentBindings = (array<MimeContentBinding^>^)myServiceDescriptionFormatExtensionCollection->FindAll( MimeContentBinding::typeid ); // Enumerate the array and display MimeContentBinding properties. IEnumerator^ myEnum = myMimeContentBindings->GetEnumerator(); while ( myEnum->MoveNext() ) { MimeContentBinding^ myMimeContentBinding = safe_cast<MimeContentBinding^>(myEnum->Current); Console::WriteLine( "Type: {0}", myMimeContentBinding->Type ); Console::WriteLine( "Part: {0}", myMimeContentBinding->Part ); } Console::WriteLine( "Namespace: {0}", MimeContentBinding::Namespace );
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: