LdapConnection.Dispose Method

Definition

Closes and optionally releases the LDAP handle.

Overloads

Dispose()

The Dispose() method closes and releases the LDAP handle.

Dispose(Boolean)

The Dispose(Boolean) method closes the connection and optionally releases the LDAP handle.

Dispose()

Source:
LdapConnection.cs
Source:
LdapConnection.cs
Source:
LdapConnection.cs

The Dispose() method closes and releases the LDAP handle.

C#
public void Dispose();

Implements

Applies to

.NET 10 (package-provided) ve diğer sürümler
Ürün Sürümler
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

Dispose(Boolean)

Source:
LdapConnection.cs
Source:
LdapConnection.cs
Source:
LdapConnection.cs

The Dispose(Boolean) method closes the connection and optionally releases the LDAP handle.

C#
protected virtual void Dispose(bool disposing);

Parameters

disposing
Boolean

true if the handle is released when the connection is closed or false if the connection is closed without releasing the handle.

Applies to

.NET 10 (package-provided) ve diğer sürümler
Ürün Sürümler
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)