INetwork class com
Represents a network on the local machine.
It can also represent a collection of network connections with a similar network signature.
To learn more, see learn.microsoft.com/windows/win32/api/netlistmgr/nn-netlistmgr-inetwork.
- Inheritance
- Implemented types
Constructors
- INetwork(VTablePointer ptr)
- Creates a new instance of INetwork from a VTablePointer.
- INetwork.from(IUnknown interface)
-
Creates a new instance of INetwork from an existing
interface.factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isConnected → bool
-
Specifies if the network has any network connectivity.
no setter
- isConnectedToInternet → bool
-
Specifies if the network has internet connectivity.
no setter
- ptr → VTablePointer
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addRef(
) → int -
Increments the reference count of this COM object.
inherited
-
getCategory(
) → NLM_NETWORK_CATEGORY - Returns the category of a network.
-
getConnectivity(
) → NLM_CONNECTIVITY - Returns the connectivity state of the network.
-
getDescription(
) → BSTR - Returns a description string for the network.
-
getDomainType(
) → NLM_DOMAIN_TYPE - Returns the domain type of a network.
-
getIDsOfNames(
Pointer< GUID> riid, Pointer<Pointer< rgszNames, int cNames, int lcid, Pointer<Utf16> >Int32> rgDispId) → void -
Maps a single member and an optional set of argument names to a
corresponding set of integer DISPIDs, which can be used on subsequent
calls to Invoke.
inherited
-
getName(
) → BSTR - Returns the name of a network.
-
getNetworkConnections(
) → IEnumNetworkConnections? - Returns an enumeration of all network connections for a network.
-
getNetworkId(
) → Pointer< GUID> - Returns the unique identifier of a network.
-
getTimeCreatedAndConnected(
Pointer< Uint32> pdwLowDateTimeCreated, Pointer<Uint32> pdwHighDateTimeCreated, Pointer<Uint32> pdwLowDateTimeConnected, Pointer<Uint32> pdwHighDateTimeConnected) → void - Returns the local date and time when the network was created and connected.
-
getTypeInfo(
int iTInfo, int lcid) → ITypeInfo? -
Retrieves the type information for an object, which can then be used to
get the type information for an interface.
inherited
-
getTypeInfoCount(
) → int -
Retrieves the number of type information interfaces that an object
provides (either 0 or 1).
inherited
-
invoke(
int dispIdMember, Pointer< GUID> riid, int lcid, DISPATCH_FLAGS wFlags, Pointer<DISPPARAMS> pDispParams, Pointer<VARIANT> ? pVarResult, Pointer<EXCEPINFO> ? pExcepInfo, Pointer<Uint32> ? puArgErr) → void -
Provides access to properties and methods exposed by an object.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
queryInterface<
T extends IUnknown> () → T -
Queries this COM object for a specific interface defined by the type
parameter
T.inherited -
release(
) → int -
Decrements the reference count of this COM object.
inherited
-
setCategory(
NLM_NETWORK_CATEGORY newCategory) → void - Sets the category of a network.
-
setDescription(
BSTR szDescription) → void - Sets or replaces the description for a network.
-
setName(
BSTR szNetworkNewName) → void - Sets or renames a network.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited