DicomObjects.NET8 Documentation
DicomObjects.DicomWeb Namespace / ContentType Class / ToMediaType Method



In This Topic
    ToMediaType Method
    In This Topic
    Formatting the Header value for the current media type based on its properties
    Syntax
    'Declaration
     
    
    Public Function ToMediaType( _
       ByVal AllowMulti As Boolean, _
       ByVal WithQuality As Boolean _
    ) As MediaTypeHeaderValue
    'Usage
     
    
    Dim instance As ContentType
    Dim AllowMulti As Boolean
    Dim WithQuality As Boolean
    Dim value As MediaTypeHeaderValue
     
    value = instance.ToMediaType(AllowMulti, WithQuality)

    Parameters

    AllowMulti
    WithQuality

    Return Value

    Returns the MediaType header value which can be incorporated in the HTTP request
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also