IInteropStreamContract.CopyTo Method
This API supports the Visual Studio Tools for Applications infrastructure and is not intended to be used directly from your code.
Throws a NotImplementedException in all cases.
Namespace: Microsoft.VisualStudio.Tools.Applications.Contract
Assembly: Microsoft.VisualStudio.Tools.Applications.Contract.v9.0 (in Microsoft.VisualStudio.Tools.Applications.Contract.v9.0.dll)
Syntax
'Declaration
Sub CopyTo ( _
target As IInteropStreamContract, _
byteSize As Long, _
<OutAttribute> ByRef bytesRead As Long, _
<OutAttribute> ByRef bytesWritten As Long _
)
'Usage
Dim instance As IInteropStreamContract
Dim target As IInteropStreamContract
Dim byteSize As Long
Dim bytesRead As Long
Dim bytesWritten As Long
instance.CopyTo(target, byteSize, bytesRead, _
bytesWritten)
void CopyTo(
IInteropStreamContract target,
long byteSize,
out long bytesRead,
out long bytesWritten
)
void CopyTo(
IInteropStreamContract^ target,
long long byteSize,
[OutAttribute] long long% bytesRead,
[OutAttribute] long long% bytesWritten
)
function CopyTo(
target : IInteropStreamContract,
byteSize : long,
bytesRead : long,
bytesWritten : long
)
Parameters
target
Type: Microsoft.VisualStudio.Tools.Applications.Contract.IInteropStreamContractThe stream object that will receive a copy of the source stream.
byteSize
Type: System.Int64The number of bytes to copy from the source stream.
bytesRead
Type: System.Int64%On successful return, contains the actual number of bytes read from the source.
bytesWritten
Type: System.Int64%On successful return, contains the actual number of bytes written to the destination.
Remarks
Throws a NotImplementedException in all cases.
Visual Studio Tools for Applications does not use this method as part of its implementation of marshaling COM objects, so this method is not implemented.
See Also
Reference
IInteropStreamContract Interface
IInteropStreamContract Members
Microsoft.VisualStudio.Tools.Applications.Contract Namespace