TRY NEW VERSION

Try now New API BETA

Try out the new view and capabilities of the API documentation

START

Close

HRESULT Close();

Closes the current scope. This method will be called automatically when the descructor is executed.

Please note, that for the .docbuilder file the CDocBuilderContextScope.Close method is not used.

Example

COM

CoInitialize(NULL);
IONLYOFFICEDocBuilder* oBuilder = NULL;
IONLYOFFICEDocBuilderContext* oContext = NULL;
IONLYOFFICEDocBuilderContextScope* oScope = NULL;
oBuilder->Initialize();
oBuilder->GetContext(&oContext);
oContext->CreateScope(&oScope);
&oScope->Close();
oBuilder->Dispose();