AgileReferenceOptions enumeration (combaseapi.h)

Specifies options for the RoGetAgileReference function.

Syntax

typedef enum AgileReferenceOptions {
  AGILEREFERENCE_DEFAULT = 0,
  AGILEREFERENCE_DELAYEDMARSHAL = 1
} ;

Constants

 
AGILEREFERENCE_DEFAULT
Value: 0
Use the default marshaling behavior, which is to marshal interfaces when an agile reference to the interface is obtained.
AGILEREFERENCE_DELAYEDMARSHAL
Value: 1
Marshaling happens on demand. Use this option only in situations where it's very likely that an object is resolved only from the same apartment in which it was registered.

Requirements

Requirement Value
Minimum supported client Windows 8.1 [desktop apps only]
Minimum supported server Windows Server 2012 R2 [desktop apps only]
Header combaseapi.h

See also

RoGetAgileReference