## NotebookLoadOptions.DeferredLoading property

Ottiene o imposta un valore che indica se i documenti secondari devono essere caricati in modo esplicito in un secondo momento.

```csharp
public bool DeferredLoading { get; set; }
```

### Osservazioni

Il valore predefinito è`falso` , quindi i documenti figlio verranno caricati in modo implicito. Value`VERO` indica che l'utente deve chiamare[`LoadChildDocument`](../../notebook/loadchilddocument/) O per il nodo figlio di ogni notebook dopo che il notebook stesso è stato caricato. Se il valore è`VERO` ,[`InstantLoading`](../instantloading/) l'opzione verrà ignorata. Se il notebook viene caricato dallo stream, il valore è always`VERO` nonostante sia stato esplicitamente impostato dall'utente su`falso` .

### Esempi

Mostra come creare un notebook crittografato.

```csharp
// Il percorso della directory dei documenti.
string dataDir = RunExamples.GetDataDir_NoteBook();
var notebook = new Notebook(dataDir + "test.onetoc2", new NotebookLoadOptions() { DeferredLoading = true });

notebook.LoadChildDocument(dataDir + "Aspose.one");  
notebook.LoadChildDocument(dataDir + "Locked Pass1.one", new LoadOptions() { DocumentPassword = "pass" });
notebook.LoadChildDocument(dataDir + "Locked Pass2.one", new LoadOptions() { DocumentPassword = "pass2" });
```

### Guarda anche

* class [NotebookLoadOptions](../)
* spazio dei nomi [Aspose.Note](../../notebookloadoptions/)
* assemblea [Aspose.Note](../../../)


