ReadAllBytes
Methode (Function) · gibt Byte() zurück
ReadAllBytes ist eine Methode der Klasse Aloaha_ZUGFeRD.XML im Aloaha ZUGFeRD SDK.
Beschreibung (Originaltext der englischen SDK-Dokumentation): Reads the complete content of a file into a byte array.
Rückgabe: The file content; an empty array if the path is empty, not a full path, the file does not exist or an error occurred
Deklaration
Public Function ReadAllBytes(ByVal path As String) As Byte()
Parameter
| Name | Typ | Pflicht | Beschreibung |
|---|---|---|---|
path | String | erforderlich | Full path of the file (must contain a backslash) |
Aufruf (VB.NET)
Dim alo As New Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, False, "IHR-LIZENZSCHLUESSEL")
Dim path As String = ""
Dim ergebnis = alo.ReadAllBytes(path)
Aufruf (C#)
var alo = new Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, false, "IHR-LIZENZSCHLUESSEL");
string path = "";
var ergebnis = alo.ReadAllBytes(path);
Artikel mit ReadAllBytes
COM-Schnittstelle
ReadAllBytes ist Mitglied der Schnittstelle Aloaha_ZUGFeRD.iXML (Position 311 von 343) und damit auch aus VB6, VBA/Access und anderen COM-Clients über CreateObject("Aloaha_ZUGFeRD.XML") aufrufbar. Neue Mitglieder werden immer am Ende von iXML angefügt, damit bestehende COM-Clients unverändert weiterlaufen; nach einem Update die Typbibliothek neu registrieren.