 | RemUserRemoveUserGoups Method |
Paperwork .Net Kütüphanesi
Kullanıcıyı, active directory senkronizasyonu ile oluşturulmuş olan gruplardan çıkarır. çıkarır.
Namespace:
Paperwork.Connect
Assembly:
Paperwork.Connect (in Paperwork.Connect.dll) Version: 5.0.0.0
Syntaxpublic a_GenericResult RemoveUserGoups(
string loginName,
string domainName
)
Parameters
- loginName
- Type: SystemString
Kullanıcı giriş adı - domainName
- Type: SystemString
Domain adı
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 RemoveUserGoups()
{
string loginName = "LOGIN_NAME";
string domainName = "DOMAIN";
a_GenericResult retval = p.rUser.RemoveUserGoups(loginName, domainName);
if (retval.ErrorCode != 0)
throw new Exception(retval.Message);
else
Console.Write("Kullanıcı gruptan başarıyla çıkarılmıştır.");
Console.ReadLine();
}
See Also