Share via


IInteropStreamContract Members

Include Protected Members
Include Inherited Members

This API supports the Visual Studio Tools for Applications infrastructure and is not intended to be used directly from your code.

Defines methods for marshaling COM references across the host application and add-in processes.

The IInteropStreamContract type exposes the following members.

Methods

  Name Description
Public method AcquireLifetimeToken Specifies that the contract is accessible to a client until the client revokes the contract. (Inherited from IContract.)
Public method Clone Creates and returns a copy of the stream object that represents the COM object.
Public method Commit Ensures that any changes made to a stream object that is open in transacted mode are reflected in the parent storage.
Public method CopyTo Throws a NotImplementedException in all cases.
Public method GetRemoteHashCode Returns a hash code for the IContract. (Inherited from IContract.)
Public method LockRegion Restricts access to a specified range of bytes in the stream.
Public method QueryContract Returns a contract that is implemented by this contract. (Inherited from IContract.)
Public method Read Reads a specified number of bytes from the stream object into memory starting at the current seek pointer.
Public method RemoteEquals Indicates whether the specified contract is equal to this IContract. (Inherited from IContract.)
Public method RemoteToString Returns a string representation of the current IContract. (Inherited from IContract.)
Public method Revert Discards all changes that have been made to a transacted stream since the last Commit call.
Public method RevokeLifetimeToken Specifies that the contract is no longer accessible to a client. (Inherited from IContract.)
Public method Seek 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.
Public method SetSize Changes the size of the stream object.
Public method Stat Retrieves the STATSTG structure for this stream.
Public method UnlockRegion Removes the access restriction from a range of bytes that was previously restricted by using the LockRegion method.
Public method Write Writes a specified number of bytes into the stream object starting at the current seek pointer.

Top

See Also

Reference

IInteropStreamContract Interface

Microsoft.VisualStudio.Tools.Applications.Contract Namespace