Click or drag to resize

Host Class

Provides static methods to retrieve network resource information from a local- or remote host.
Provides static methods to retrieve network resource information from a local- or remote host.
Inheritance Hierarchy
SystemObject
  Alphaleonis.Win32.NetworkHost

Namespace:  Alphaleonis.Win32.Network
Assembly:  AlphaFS (in AlphaFS.dll) Version: 2.2
Syntax
public static class Host

The Host type exposes the following members.

Methods
  NameDescription
Public methodStatic memberConnectDrive(String, String)
Creates a connection to a network resource. The function can redirect a local device to a network resource.
Public methodStatic memberConnectDrive(String, String, NetworkCredential, Boolean, Boolean, Boolean)
Creates a connection to a network resource. The function can redirect a local device to a network resource.
Public methodStatic memberConnectDrive(IntPtr, String, String, NetworkCredential, Boolean, Boolean, Boolean)
Creates a connection to a network resource. The function can redirect a local device to a network resource.
Public methodStatic memberConnectDrive(String, String, String, String, Boolean, Boolean, Boolean)
Creates a connection to a network resource. The function can redirect a local device to a network resource.
Public methodStatic memberConnectDrive(IntPtr, String, String, String, String, Boolean, Boolean, Boolean)
Creates a connection to a network resource. The function can redirect a local device to a network resource.
Public methodStatic memberConnectTo(String)
Creates a connection to a network resource.
Public methodStatic memberConnectTo(String, NetworkCredential, Boolean, Boolean, Boolean)
Creates a connection to a network resource.
Public methodStatic memberConnectTo(IntPtr, String, NetworkCredential, Boolean, Boolean, Boolean)
Creates a connection to a network resource.
Public methodStatic memberConnectTo(String, String, String, Boolean, Boolean, Boolean)
Creates a connection to a network resource.
Public methodStatic memberConnectTo(IntPtr, String, String, String, Boolean, Boolean, Boolean)
Creates a connection to a network resource.
Public methodStatic memberDisconnectDrive(String)
Cancels an existing network connection. You can also call the function to remove remembered network connections that are not currently connected.
Public methodStatic memberDisconnectDrive(String, Boolean, Boolean)
Cancels an existing network connection. You can also call the function to remove remembered network connections that are not currently connected.
Public methodStatic memberDisconnectFrom(String)
Cancels an existing network connection. You can also call the function to remove remembered network connections that are not currently connected.
Public methodStatic memberDisconnectFrom(String, Boolean, Boolean)
Cancels an existing network connection. You can also call the function to remove remembered network connections that are not currently connected.
Public methodStatic memberEnumerateDfsLinks
Enumerates the DFS Links from a DFS namespace.
Public methodStatic memberEnumerateDfsRoot
Enumerates the DFS namespaces from the local host.
Public methodStatic memberEnumerateDfsRoot(String, Boolean)
Enumerates the DFS namespaces from a host.
Public methodStatic memberEnumerateDomainDfsRoot
Enumerates the DFS namespaces from the domain.
Public methodStatic memberEnumerateDomainDfsRoot(String, Boolean)
Enumerates the DFS namespaces from a domain.
Public methodStatic memberEnumerateDrives
Enumerates drives from the local host.
Public methodStatic memberEnumerateDrives(String, Boolean)
Enumerates local drives from the specified host.
Public methodStatic memberEnumerateNetworkConnections
[AlphaFS] Returns an enumerable collection of defined network connections on the local host.
Public methodStatic memberEnumerateNetworks
[AlphaFS] Returns an enumerable collection of networks available on the local host.
Public methodStatic memberEnumerateNetworks(NetworkConnectivityLevels)
[AlphaFS] Returns an enumerable collection of networks available on the local host.
Public methodStatic memberEnumerateOpenConnections
Enumerates open connections from the local host.
Public methodStatic memberEnumerateOpenConnections(String, String, Boolean)
Enumerates open connections from the specified host.
Public methodStatic memberEnumerateOpenResources
Enumerates open resources from the local host.
Public methodStatic memberEnumerateOpenResources(String, String, String, Boolean)
Enumerates open resources from the specified host.
Public methodStatic memberEnumerateSessions
[AlphaFS] Enumerates sessions established on the local host.
Public methodStatic memberEnumerateSessions(String)
[AlphaFS] Enumerates sessions established on the specified hostName.
Public methodStatic memberEnumerateSessions(String, String)
[AlphaFS] Enumerates sessions established on the specified hostName.
Public methodStatic memberEnumerateSessions(String, String, String)
[AlphaFS] Enumerates sessions established on the specified hostName.
Public methodStatic memberEnumerateShares
Enumerates Server Message Block (SMB) shares from the local host.
Public methodStatic memberEnumerateShares(Boolean)
Enumerates Server Message Block (SMB) shares from the local host.
Public methodStatic memberEnumerateShares(String)
Enumerates Server Message Block (SMB) shares from the specified host.
Public methodStatic memberEnumerateShares(String, Boolean)
Enumerates Server Message Block (SMB) shares from the specified host.
Public methodStatic memberEnumerateShares(ShareType, Boolean)
Enumerates Server Message Block (SMB) shares from the local host.
Public methodStatic memberEnumerateShares(String, ShareType, Boolean)
Enumerates Server Message Block (SMB) shares from the specified host.
Public methodStatic memberGetDfsClientInfo(String)
Gets information about a DFS root or link from the cache maintained by the DFS client.
Public methodStatic memberGetDfsClientInfo(String, String, String)
Gets information about a DFS root or link from the cache maintained by the DFS client.
Public methodStatic memberGetDfsInfo
Gets information about a specified DFS root or link in a DFS namespace.
Public methodStatic memberGetHostShareFromPath
Gets the host and share path name for the given uncPath.
Public methodStatic memberGetNetwork
[AlphaFS] Rretrieves a network based on a supplied network ID from the local host.
Public methodStatic memberGetNetworkConnection
[AlphaFS] Retrieves a network based on a specified network connection ID.
Public methodStatic memberGetServerStatistics
[AlphaFS] Retrieves ServerStatisticsInfo operating statistics for the Server service from the local host.
Public methodStatic memberGetServerStatistics(String)
[AlphaFS] Retrieves ServerStatisticsInfo operating statistics for the Server service from the specified host.
Public methodStatic memberGetShareInfo(String, Boolean)
Retrieves information about the Server Message Block (SMB) share as defined on the specified host.
Public methodStatic memberGetShareInfo(String, String, Boolean)
Retrieves information about the Server Message Block (SMB) share as defined on the specified host.
Public methodStatic memberGetShareInfo(ShareInfoLevel, String, Boolean)
Retrieves information about the Server Message Block (SMB) share as defined on the specified host.
Public methodStatic memberGetShareInfo(ShareInfoLevel, String, String, Boolean)
Retrieves information about the Server Message Block (SMB) share as defined on the specified host.
Public methodStatic memberGetUncName
Return the host name in UNC format, for example: \\hostname
Public methodStatic memberGetUncName(String)
Return the host name in UNC format, for example: \\hostname
Public methodStatic memberGetWorkstationStatistics
[AlphaFS] Retrieves WorkstationStatisticsInfo operating statistics for the Workstation service from the local host.
Public methodStatic memberGetWorkstationStatistics(String)
[AlphaFS] Retrieves WorkstationStatisticsInfo operating statistics for the Workstation service from the specified host.
Top
See Also