Click or drag to resize

RemAdminGetMethod Method

Paperwork .Net Kütüphanesi
Sistemde kayıtlı olan bir metotun bilgisini almak için kullanılan metottur.

Namespace:  Paperwork.Connect
Assembly:  Paperwork.Connect (in Paperwork.Connect.dll) Version: 5.0.0.0
Syntax
C#
public a_Method GetMethod(
	ObjectName methodName
)

Parameters

methodName
Type: ObjectName
İstenen metot adı.

Return Value

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

            public void GetMethod()
            {
                bool activeOnly = false;
                string methodType = string.Empty;
                ObservableCollection<LookupItem> getmethodlist = p.rLookup.GetMethodList(activeOnly, methodType);

                foreach (LookupItem method in getmethodlist)
                {
                    if (method.Name == "Sözleşme Bitişi Kontrolü")
                    {
                        ObjectName name = new ObjectName(method.Name);
                        a_Method met = p.rAdmin.GetMethod(name);
                        Console.WriteLine("Method Adı: {0}", met.MethodName);
                    }
                }
            }
See Also