Table of Contents

Struct ComBstrMarshaller.UnmanagedToManagedRef

Namespace
CsCom.Runtime
Assembly
CsCom.Runtime.dll

Receives a string by reference in a COM object implemented in .NET, which can replace it. A replaced string is freed, as the callee of an [in, out] parameter must do.

public struct ComBstrMarshaller.UnmanagedToManagedRef
Inherited Members

Methods

Free()

Invalidates the view after the call.

public readonly void Free()

FromManaged(ComBstr?)

Takes the string returned by the method.

public void FromManaged(ComBstr? managed)

Parameters

managed ComBstr

FromUnmanaged(nint)

Wraps the BSTR pointer passed by the caller.

public void FromUnmanaged(nint unmanaged)

Parameters

unmanaged nint

ToManaged()

Gets a view of the string passed by the caller.

public readonly ComBstr? ToManaged()

Returns

ComBstr

ToUnmanaged()

Gets the BSTR pointer returned to the caller.

public readonly nint ToUnmanaged()

Returns

nint