 | RemInboxObjectSend Method |
Paperwork .Net Kütüphanesi
Bir nesnenin bir kullanıcıya gönderilmesi. Verilen değerlere göre kullanıcıya mesaj atar.
Namespace:
Paperwork.Connect
Assembly:
Paperwork.Connect (in Paperwork.Connect.dll) Version: 5.0.0.0
Syntaxpublic a_GenericResult ObjectSend(
string toWho,
ObjectID objectId,
string message,
int priority,
bool notify = false
)
Parameters
- toWho
- Type: SystemString
Gönderi yapılacak kullanıcı - objectId
- Type: ObjectID
Gönderi yapılacak nesne numarası - message
- Type: SystemString
Mesaj - priority
- Type: SystemInt32
Öncelik 1- 65535 (minimum 1) - notify (Optional)
- Type: SystemBoolean
Gönderilenen nesnenin kullanıcıya email ile bilgilendirilmesi kontrolünü sağlar.(True ya da False)
Return Value
Type:
a_GenericResulta_GenericResult nesesi içinde , ErrorCode=0 ise işlem başarılıdır. Aksi taktirde Result ve Message alanları kontrol ediniz.
Examplespublic void ObjectSend()
{
ObjectID oid = new ObjectID("FF00010000000001");
string toWho = "username";
string message = "Deneme";
int priority = 1;
a_GenericResult retval = p.rInbox.ObjectSend(toWho, oid, message, priority);
if (retval.ErrorCode != 0)
throw new Exception(retval.Message);
else
Console.WriteLine(retval.Result);
Console.ReadLine();
}
See Also