This documentation is archived and is not being maintained.
SoapHeaderBinding::MapToProperty Property
Visual Studio 2010
Gets or sets a value indicating whether the SoapHeaderBinding instance is mapped to a specific property in generated proxy classes.
Assembly: System.Web.Services (in System.Web.Services.dll)
Property Value
Type: System::Booleantrue if the SoapHeaderBinding maps to a specific property; otherwise false.
// Read from an existing wsdl file. ServiceDescription^ myServiceDescription = ServiceDescription::Read( "MapToProperty_cpp.wsdl" ); // Get the existing binding Binding^ myBinding = myServiceDescription->Bindings[ "MyWebServiceSoap" ]; OperationBinding^ myOperationBinding = (OperationBinding^)(myBinding->Operations[ 0 ]); InputBinding^ myInputBinding = myOperationBinding->Input; // Get the 'SoapHeaderBinding' instance from 'myInputBinding'. SoapHeaderBinding^ mySoapHeaderBinding = (SoapHeaderBinding^)(myInputBinding->Extensions[ 1 ]); if ( mySoapHeaderBinding->MapToProperty ) Console::WriteLine( "'SoapHeaderBinding' instance is mapped to a specific property in proxy generated class" ); else Console::WriteLine( "'SoapHeaderBinding' instance is not mapped to a specific property in proxy generated class" );
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: