In diesem Abschnitt wird der Beispielcode ausschnittsweise beschrieben.
In this section, the code is described a few lines at a time.
Mit dem unten gezeigten Beispielcode wird der komplette Text der aktuellen Auswahl abgerufen
The example code below retrieves the complete text of the current selection
Der folgende Beispielcode wird kompiliert und ausgeführt, da die Instanzeigenschaft von der Extender-Klasse geerbt wird.
The following code compiles and executes because the instance property is inherited by the Extender class.
Hoffentlich wird der Beispielcode im Abschnitt zur Junos-Automatisierung in der zweiten Ausgabe Programmierer/Skripter dazu anregen, ihre eigenen Lösungen zu entwickeln.
Hopefully the sample code in the Junos Automation section in the second edition will inspire coders/scripters to explore developing their own solutions.
Im folgenden Beispielcode wird der RefreshUsingXML -Methode der Name einer XML-Zeichenfolge übergeben, die die aktualisierten Daten enthält.
In the following sample code, we pass the RefreshUsingXML method the name of an XML string containing the updated data.
Der oben aufgeführte Beispielcode wird korrekt ausgeführt, wenn Sie die letzte Zeile durch folgende Zeile ersetzen
Bei dem folgenden Beispielcode wird der WCF IO Webdienst verwendet und es wird davon ausgegangen, dass er auf dem lokalen Computer installiert ist.
The following code sample uses the WCF IO Web Service and assumes that it is installed on the local machine.
Im folgenden Beispielcode wird der Name einer XML-Zeichenfolge, die Daten enthält, und der Name einer Zeichenfolge, die den Anzeigenamen enthält, der dem neuen, bei diesem Vorgang erstellten, Datenrecordset zugewiesen werden soll, an die AddFromXML -Methode übergeben.
In the following sample code, we pass the AddFromXML method the name of an XML string containing data and the name of a string containing the display name we want to assign to the new data recordset being created.
Der gesamte Beispielcode wird, in die bereits erstellte, „main"-Methode der „Main"- Klasse eingefügt.
The entire sample code is inserted into the already created "main" method of the "Main" class.
Potentially sensitive or inappropriate content
Examples are used only to help you translate the word or expression searched in various contexts. They are not selected or validated by us and can contain inappropriate terms or ideas. Please report examples to be edited or not to be displayed. Potentially sensitive, inappropriate or colloquial translations are usually marked in red or in orange.