Microsoft Operations Manager

BindLast Property

The BindLastproperty gets the time, in milliseconds, of the last Active Directory bind operation performed.

[VBScript] ActiveDirectory.BindLast

Access

Read-only

Return Value

Long

Examples

The following example shows how to determine the time required to bind to the rootDSEobject.

[VBScript] 
Function GetBindTime()
	Dim objActiveDirectory
	Dim objRootDSE
	Dim lngBindTime

	lngBindTime = -1

	Set objActiveDirectory =
CreateObject("McActiveDir.ActiveDirectory")

	objActiveDirectory.BindObject("LDAP://rootDSE", objRootDSE)
	lngBindTime = objActiveDirectory.BindLast

	Set objRootDSE = Nothing
	Set objActiveDirectory = Nothing

	GetBindTime = lngBindTime
End Function

Requirements

Windows NT/2000: Requires Windows 2000 or later
Version: Requires MOM 1.0 SP1

See Also

ActiveDirectory Object


Did you find this information useful? Please send your suggestions and comments about the documentation to momsdk@microsoft.com.