Wolfgang Schölmberger
Member
Hi everybody
OE11.3 - Win8
I'm trying to read a property in a .NET-class and I'm not able to translate the C#-syntax to ABL-code.
I'm totally new to this kind of programming, so I would appreciate any code-example.
the class is called "DocuWare.Platform.ServerClient.ServiceConnection" and the property i want to read is "Organizations".
from the DocuWare-documentation:
ServiceConnection.Organizations Property - Gets the organizations.
C# - public Organization[] Organizations { get; }
the C#-example i have is:
this.connector = ServiceConnection.Create(new System.Uri(String.Format(urlFormatString, serverUrl)),
userName: userName,
password: userPassword,
organization: organizationName);
this.org = this.connector.Organizations[0];
my ABL-Code:
I have managed to translate the first statement and already get a connection:
DEF VAR sConn AS DocuWare.Platform.ServerClient.ServiceConnection.
sConn = ServiceConnection:Create (URI, "username", "pswd", "orgname").
but I dont know how to translate the second statement, to get the organisations:
this.org = this.connector.Organizations[0];
I also don't understand at all the documantation-line:
C# - public Organization[] Organizations { get; }
OE11.3 - Win8
I'm trying to read a property in a .NET-class and I'm not able to translate the C#-syntax to ABL-code.
I'm totally new to this kind of programming, so I would appreciate any code-example.
the class is called "DocuWare.Platform.ServerClient.ServiceConnection" and the property i want to read is "Organizations".
from the DocuWare-documentation:
ServiceConnection.Organizations Property - Gets the organizations.
C# - public Organization[] Organizations { get; }
the C#-example i have is:
this.connector = ServiceConnection.Create(new System.Uri(String.Format(urlFormatString, serverUrl)),
userName: userName,
password: userPassword,
organization: organizationName);
this.org = this.connector.Organizations[0];
my ABL-Code:
I have managed to translate the first statement and already get a connection:
DEF VAR sConn AS DocuWare.Platform.ServerClient.ServiceConnection.
sConn = ServiceConnection:Create (URI, "username", "pswd", "orgname").
but I dont know how to translate the second statement, to get the organisations:
this.org = this.connector.Organizations[0];
I also don't understand at all the documantation-line:
C# - public Organization[] Organizations { get; }