API Reference
Class
NetworkHardening
Queries consolidated network hardening posture.
Inheritance
- Object
- NetworkHardening
Methods
public static NetworkHardeningPostureInfo Get(String computerName = null) #Returns:
NetworkHardeningPostureInfoGets network hardening posture for a local or remote computer.
Parameters
- computerName System.String = null
- Target computer; null/empty uses local machine.
Returns
Network hardening posture snapshot.
public static Task<NetworkHardeningPostureInfo> GetAsync(String computerName = null, CancellationToken cancellationToken = null) #Returns:
Task<NetworkHardeningPostureInfo>Asynchronously gets network hardening posture for a local or remote computer.
Parameters
- computerName System.String = null
- Target computer; null/empty uses local machine.
- cancellationToken System.Threading.CancellationToken = null
- Cancellation token.
Returns
Network hardening posture snapshot.
public static IAsyncEnumerable<NetworkHardeningPostureInfo> GetManyAsync(IEnumerable<String> computerNames, Int32 degreeOfParallelism = 4, CancellationToken cancellationToken = null) #Returns:
IAsyncEnumerable<NetworkHardeningPostureInfo>Gets network hardening posture for multiple computers with bounded concurrency.
Parameters
- computerNames System.Collections.Generic.IEnumerable{System.String}
- Target computers.
- degreeOfParallelism System.Int32 = 4
- Maximum concurrency.
- cancellationToken System.Threading.CancellationToken = null
- Cancellation token.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object