Share via


XopDocument.LoadFromXopPackage Method

Loads an XOP package from the specified stream.

Namespace: Microsoft.Web.Services3.Mime
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)

Usage

'Usage
Dim contentType As String
Dim stream As Stream
Dim returnValue As String
Dim xopDocument1 As XopDocument
returnValue = xopDocument1.LoadFromXopPackage(contentType, stream)

Syntax

'Declaration
Public Overridable Function LoadFromXopPackage( _
    ByVal contentType As String, _
    ByVal stream As Stream _
) As String
public virtual string LoadFromXopPackage(
    string contentType, 
    Stream stream
);
public:
virtual String^ LoadFromXopPackage(
    String^ contentType,
    Stream^ stream
);
public virtual System.String LoadFromXopPackage(
    System.String contentType, 
    Stream stream
);
public function LoadFromXopPackage(
     contentType : String, 
     stream : Stream
) : String;

Parameters

  • contentType
    The content type for the content type in the stream parameter.
  • stream
    The System.IO.Stream to read from.

Return Value

The MIME media type for the XOP package.

Remarks

Any extracted XOP contents in this stream are not read from this stream until necessary. Before the stream is used, call CompleteLoadFromXopPackage(Boolean) to finish reading from the stream.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server

Target Platforms

See Also

Reference

XopDocument Class
XopDocument Members
Microsoft.Web.Services3.Mime Namespace