MimeContentBinding.Part Property

 

Gets or sets the name of the MessagePart to which the MimeContentBinding applies.

Namespace:   System.Web.Services.Description
Assembly:  System.Web.Services (in System.Web.Services.dll)

Public Property Part As String

Property Value

Type: System.String

A string representing the name of the MessagePart with which the current MimeContentBinding is associated. The default value is an empty string ("").

Dim myServiceDescription As ServiceDescription = _
   ServiceDescription.Read ("MimeContentSample_vb.wsdl")

' Get the Binding.
Dim myBinding As Binding = myServiceDescription.Bindings("b1")

' Get the first OperationBinding.
Dim myOperationBinding As OperationBinding = myBinding.Operations(0)
Dim myOutputBinding As OutputBinding = myOperationBinding.Output
Dim myServiceDescriptionFormatExtensionCollection As _
   ServiceDescriptionFormatExtensionCollection = _
   myOutputBinding.Extensions

' Find all MimeContentBinding objects in extensions.
Dim myMimeContentBindings As MimeContentBinding() = _
   CType(myServiceDescriptionFormatExtensionCollection.FindAll( _
   GetType(MimeContentBinding)), MimeContentBinding())

' Enumerate the array and display MimeContentBinding properties.
Dim myMimeContentBinding As MimeContentBinding
For Each myMimeContentBinding In  myMimeContentBindings
   Console.WriteLine("Type: " & myMimeContentBinding.Type)
   Console.WriteLine("Part: " & myMimeContentBinding.Part)
Next myMimeContentBinding

.NET Framework
Available since 1.1
Return to top
Show: