WMIHelper MembersCleanCode C# Libraries v1.2.03 API

The WMIHelper type exposes the following members.
Constructors

  NameDescription
Public methodWMIHelper 
Initializes a new instance of the WMIHelper class for the local host.
Public methodWMIHelper(String)
Initializes a new instance of the WMIHelper class for the local host. Pre-selects a section to use in single-argument version of GetInfo(String).
Public methodWMIHelper(String, String, String, String)
Initializes a new instance of the WMIHelper class.
Public methodWMIHelper(String, String, String, String, String)
Initializes a new instance of the WMIHelper class. Pre-selects a section to use in single-argument version of GetInfo(String).
Back to Top
Methods

  NameDescription
Public methodConnect
Connects to the management scope created in the constructor.
Public methodOnlineEquals
Determines whether the specified OnlineObject is equal to the current OnlineObject.
(Inherited from OnlineObject.)
Protected methodOnlineFinalize
Allows an OnlineObject to attempt to free resources and perform other cleanup operations before the OnlineObject is reclaimed by garbage collection.
(Inherited from OnlineObject.)
Public methodOnlineGetHashCode
Serves as a hash function for a particular type.
(Inherited from OnlineObject.)
Public methodGetInfo(String)
Gets the server info for the specified key in the pre-selected section (i.e. section specified in constructor or via SetSection(String)).
Public methodGetInfo(WMIHelper CustomToken)
Gets the server info for the special token.
Public methodGetInfo(String, String)
Gets the server info for the specified key in the given section.
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Protected methodOnlineMemberwiseClone
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
Public methodSetSection
A convenience method allowing you to change the section specified in the constructor (or previous SetSection call).
Public methodOnlineToString
Returns a OnlineString that represents the current OnlineObject.
(Inherited from OnlineObject.)
Back to Top
See Also