Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ int main(array<String^>^ args)
}
// Clean up.
delete message;
delete client;
client = nullptr;
Console::WriteLine("Goodbye.");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ public static void Main(string[] args)
}
// Clean up.
message.Dispose();
client.Dispose();
Console.WriteLine("Goodbye.");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ Namespace Examples.SmtpExamples.Async
End If
' Clean up.
message.Dispose()
client.Dispose()
Console.WriteLine("Goodbye.")
End Sub
End Class
Expand Down
128 changes: 64 additions & 64 deletions xml/System.Runtime.InteropServices.ComTypes/IStream.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@
<Docs>
<summary>Provides the managed definition of the <see langword="IStream" /> interface, with <see langword="ISequentialStream" /> functionality.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
For more information, see the documentation for the [IStream](/windows/win32/api/objidl/nn-objidl-istream) and [ISequentialStream](/windows/win32/api/objidl/nn-objidl-isequentialstream) interfaces.
The common language runtime throws an exception when a COM method in native code returns an `HRESULT` other than `S_OK`. For more information, see [How to: Map HRESULTs and Exceptions](/dotnet/framework/interop/how-to-map-hresults-and-exceptions).
<format type="text/markdown"><![CDATA[

## Remarks
For more information, see the documentation for the [IStream](/windows/win32/api/objidl/nn-objidl-istream) and [ISequentialStream](/windows/win32/api/objidl/nn-objidl-isequentialstream) interfaces.

The common language runtime throws an exception when a COM method in native code returns an `HRESULT` other than `S_OK`. For more information, see [How to: Map HRESULTs and Exceptions](/dotnet/framework/interop/how-to-map-hresults-and-exceptions).

]]></format>
</remarks>
<related type="ExternalDocumentation" href="/windows/win32/api/objidl/nn-objidl-istream">IStream</related>
Expand Down Expand Up @@ -122,11 +122,11 @@
<param name="ppstm">When this method returns, contains the new stream object. This parameter is passed uninitialized.</param>
<summary>Creates a new stream object with its own seek pointer that references the same bytes as the original stream.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
For more information, see the existing documentation for [IStream::Clone](/windows/win32/api/objidl/nf-objidl-istream-clone).
<format type="text/markdown"><![CDATA[

## Remarks
For more information, see the existing documentation for [IStream::Clone](/windows/win32/api/objidl/nf-objidl-istream-clone).

]]></format>
</remarks>
</Docs>
Expand Down Expand Up @@ -176,11 +176,11 @@
<param name="grfCommitFlags">A value that controls how the changes for the stream object are committed.</param>
<summary>Ensures that any changes made to a stream object that is open in transacted mode are reflected in the parent storage.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
For more information, see the existing documentation for [IStream::Commit](/windows/win32/api/objidl/nf-objidl-istream-commit).
<format type="text/markdown"><![CDATA[

## Remarks
For more information, see the existing documentation for [IStream::Commit](/windows/win32/api/objidl/nf-objidl-istream-commit).

]]></format>
</remarks>
</Docs>
Expand Down Expand Up @@ -236,11 +236,11 @@
<param name="pcbWritten">On successful return, contains the actual number of bytes written to the destination.</param>
<summary>Copies a specified number of bytes from the current seek pointer in the stream to the current seek pointer in another stream.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
For more information, see the existing documentation for [IStream::CopyTo](/windows/win32/api/objidl/nf-objidl-istream-copyto).
<format type="text/markdown"><![CDATA[

## Remarks
For more information, see the existing documentation for [IStream::CopyTo](/windows/win32/api/objidl/nf-objidl-istream-copyto).

]]></format>
</remarks>
</Docs>
Expand Down Expand Up @@ -294,11 +294,11 @@
<param name="dwLockType">The requested restrictions on accessing the range.</param>
<summary>Restricts access to a specified range of bytes in the stream.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
For more information, see the existing documentation for [IStream::LockRegion](/windows/win32/api/objidl/nf-objidl-istream-lockregion).
<format type="text/markdown"><![CDATA[

## Remarks
For more information, see the existing documentation for [IStream::LockRegion](/windows/win32/api/objidl/nf-objidl-istream-lockregion).

]]></format>
</remarks>
</Docs>
Expand Down Expand Up @@ -350,14 +350,14 @@
<Docs>
<param name="pv">When this method returns, contains the data read from the stream. This parameter is passed uninitialized.</param>
<param name="cb">The number of bytes to read from the stream object.</param>
<param name="pcbRead">A pointer to a <see langword="ULONG" /> variable that receives the actual number of bytes read from the stream object.</param>
<param name="pcbRead">A pointer to an <see langword="uint" /> variable that receives the actual number of bytes read from the stream object.</param>
<summary>Reads a specified number of bytes from the stream object into memory starting at the current seek pointer.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
For more information, see the existing documentation for [ISequentialStream::Read](/windows/win32/api/objidl/nf-objidl-isequentialstream-read).
<format type="text/markdown"><![CDATA[

## Remarks
For more information, see the existing documentation for [ISequentialStream::Read](/windows/win32/api/objidl/nf-objidl-isequentialstream-read).

]]></format>
</remarks>
</Docs>
Expand Down Expand Up @@ -404,11 +404,11 @@
<Docs>
<summary>Discards all changes that have been made to a transacted stream since the last <see cref="M:System.Runtime.InteropServices.ComTypes.IStream.Commit(System.Int32)" /> call.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
For more information, see the existing documentation for [IStream::Revert](/windows/win32/api/objidl/nf-objidl-istream-revert).
<format type="text/markdown"><![CDATA[

## Remarks
For more information, see the existing documentation for [IStream::Revert](/windows/win32/api/objidl/nf-objidl-istream-revert).

]]></format>
</remarks>
</Docs>
Expand Down Expand Up @@ -462,11 +462,11 @@
<param name="plibNewPosition">On successful return, contains the offset of the seek pointer from the beginning of the stream.</param>
<summary>Changes the seek pointer to a new location relative to the beginning of the stream, to the end of the stream, or to the current seek pointer.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
For more information, see the existing documentation for [IStream::Seek](/windows/win32/api/objidl/nf-objidl-istream-seek).
<format type="text/markdown"><![CDATA[

## Remarks
For more information, see the existing documentation for [IStream::Seek](/windows/win32/api/objidl/nf-objidl-istream-seek).

]]></format>
</remarks>
</Docs>
Expand Down Expand Up @@ -516,11 +516,11 @@
<param name="libNewSize">The new size of the stream as a number of bytes.</param>
<summary>Changes the size of the stream object.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
For more information, see the existing documentation for [IStream::SetSize](/windows/win32/api/objidl/nf-objidl-istream-setsize).
<format type="text/markdown"><![CDATA[

## Remarks
For more information, see the existing documentation for [IStream::SetSize](/windows/win32/api/objidl/nf-objidl-istream-setsize).

]]></format>
</remarks>
</Docs>
Expand Down Expand Up @@ -572,11 +572,11 @@
<param name="grfStatFlag">Members in the <see langword="STATSTG" /> structure that this method does not return, thus saving some memory allocation operations.</param>
<summary>Retrieves the <see cref="T:System.Runtime.InteropServices.STATSTG" /> structure for this stream.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
For more information, see the existing documentation for [IStream::Stat](/windows/win32/api/objidl/nf-objidl-istream-stat).
<format type="text/markdown"><![CDATA[

## Remarks
For more information, see the existing documentation for [IStream::Stat](/windows/win32/api/objidl/nf-objidl-istream-stat).

]]></format>
</remarks>
</Docs>
Expand Down Expand Up @@ -630,11 +630,11 @@
<param name="dwLockType">The access restrictions previously placed on the range.</param>
<summary>Removes the access restriction on a range of bytes previously restricted with the <see cref="M:System.Runtime.InteropServices.ComTypes.IStream.LockRegion(System.Int64,System.Int64,System.Int32)" /> method.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
For more information, see the existing documentation for [IStream::UnlockRegion](/windows/win32/api/objidl/nf-objidl-istream-unlockregion).
<format type="text/markdown"><![CDATA[

## Remarks
For more information, see the existing documentation for [IStream::UnlockRegion](/windows/win32/api/objidl/nf-objidl-istream-unlockregion).

]]></format>
</remarks>
</Docs>
Expand Down Expand Up @@ -685,14 +685,14 @@
<Docs>
<param name="pv">The buffer to write this stream to.</param>
<param name="cb">The number of bytes to write to the stream.</param>
<param name="pcbWritten">On successful return, contains the actual number of bytes written to the stream object. If the caller sets this pointer to <see cref="F:System.IntPtr.Zero" />, this method does not provide the actual number of bytes written.</param>
<param name="pcbWritten">A pointer to a <see langword="uint" /> variable where this method writes the actual number of bytes written to the stream object. The caller can set this pointer to <see cref="F:System.IntPtr.Zero" />, in which case this method does not provide the actual number of bytes written.</param>
<summary>Writes a specified number of bytes into the stream object starting at the current seek pointer.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
For more information, see the existing documentation for [ISequentialStream::Write](/windows/win32/api/objidl/nf-objidl-isequentialstream-write).
<format type="text/markdown"><![CDATA[

## Remarks
For more information, see the existing documentation for [ISequentialStream::Write](/windows/win32/api/objidl/nf-objidl-isequentialstream-write).

]]></format>
</remarks>
</Docs>
Expand Down
Loading