Click or drag to resize

RemLoginCreateToken Method

Paperwork .Net Kütüphanesi
Yeni bir bilet oluşturmak için kullanılan metottur.

Namespace:  Paperwork.Connect
Assembly:  Paperwork.Connect (in Paperwork.Connect.dll) Version: 5.0.0.0
Syntax
C#
public a_GenericResult CreateToken(
	string userName,
	bool timeout,
	DateTime lastLogin
)

Parameters

userName
Type: SystemString
Bileti kullanacak kullanıcı
timeout
Type: SystemBoolean
Süresiz kullanım
lastLogin
Type: SystemDateTime
Bilet hangi tarihte kadar geçerli olacak

Return Value

Type: a_GenericResult
a_GenericResult nesesi içinde , ErrorCode=0 ise işlem başarılıdır. Aksi taktirde Result ve Message alanları kontrol ediniz.
Examples
C#
  

             public void CreateToken()
             {
                 string userName = "argus";
                 bool timeout = false;
                 DateTime lastLogin = new DateTime();
                 a_GenericResult ct = p.rLogin.CreateToken(userName, timeout, lastLogin);
                 if (ct.ErrorCode != 0)
                    throw new Exception(ct.Message);
             }
                 
See Also