Freigeben über


PowerPoint.RequestContext class

Das RequestContext-Objekt erleichtert Anforderungen an die PowerPoint-Anwendung. Da das Office-Add-In und die PowerPoint-Anwendung in zwei verschiedenen Prozessen ausgeführt werden, ist der Anforderungskontext erforderlich, um über das Add-In Zugriff auf das PowerPoint-Objektmodell zu erhalten.

Extends

Hinweise

Beispiele

// *.run methods automatically create an OfficeExtension.ClientRequestContext
// object to work with the Office file.
await PowerPoint.run(async (context) => {
  const presentation = context.presentation;
  // Interact with the PowerPoint presentation...
});

Konstruktoren

(constructor)(url)

Erstellt eine neue Instanz der RequestContext -Klasse

Eigenschaften

application
presentation

Details zum Konstruktor

(constructor)(url)

Erstellt eine neue Instanz der RequestContext -Klasse

constructor(url?: string);

Parameter

url

string

Details zur Eigenschaft

application

readonly application: Application;

Eigenschaftswert

presentation

readonly presentation: Presentation;

Eigenschaftswert