MimeHelpers.GetStreamBytes Method (Stream)
Gets bytes from a generic data stream.
Namespace: Microsoft.ConfigurationManagement.Messaging.Framework
Assembly: Microsoft.ConfigurationManagement.Messaging (in Microsoft.ConfigurationManagement.Messaging.dll)
Syntax
public static byte[] GetStreamBytes(
Stream dataStream
)
public:
static array<unsigned char>^ GetStreamBytes(
Stream^ dataStream
)
Public Shared Function GetStreamBytes (
dataStream As Stream
) As Byte()
Parameters
dataStream
Type: System.IO.StreamThe data stream.
Return Value
Type: System.Byte[]
All bytes contained in the data stream. This is implementation-specific based on stream type.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Stream must not be null. |
See Also
GetStreamBytes Overload
MimeHelpers Class
Microsoft.ConfigurationManagement.Messaging.Framework Namespace
Return to top