Metodo IManagedObjectInfo::SetWrapperStrength (comsvcs.h)

Imposta se l'oggetto gestito contiene un riferimento sicuro o debole al contesto COM+.

Sintassi

HRESULT SetWrapperStrength(
  [in] BOOL bStrong
);

Parametri

[in] bStrong

Indica se l'oggetto gestito contiene un riferimento sicuro o debole al contesto COM+. Un riferimento sicuro mantiene attivo l'oggetto e impedisce che venga distrutto durante la Garbage Collection.

Valore restituito

Questo metodo può restituire i valori restituiti standard E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL e S_OK.

Requisiti

Requisito Valore
Client minimo supportato Windows XP con SP1 [solo app desktop]
Server minimo supportato Windows Server 2003 [solo app desktop]
Piattaforma di destinazione Windows
Intestazione comsvcs.h

Vedi anche

IManagedObjectInfo