ContainerUlimit Class

A resource limit (ulimit) of the processes of a container.

public sealed class ContainerUlimit : IEquatable<ContainerUlimit>
Implements

Constructors

NameDescription
ContainerUlimit(string, long)Initializes a new instance of the ContainerUlimit class whose soft and hard limits are the same.
ContainerUlimit(string, long, long)A resource limit (ulimit) of the processes of a container.

ContainerUlimit overloads

ContainerUlimit(string, long)

ContainerUlimit.cs

Initializes a new instance of the ContainerUlimit class whose soft and hard limits are the same.

public ContainerUlimit(string name, long limit)
Parameters
name string
The name of the limit, such as nofile or nproc.
limit long
The soft and hard limit.

ContainerUlimit(string, long, long)

ContainerUlimit.cs

A resource limit (ulimit) of the processes of a container.

public ContainerUlimit(string Name, long Soft, long Hard)
Parameters
Name string
The name of the limit, such as nofile or nproc.
Soft long
The soft limit.
Hard long
The hard limit.

Properties

NameDescription
HardThe hard limit.
NameGets the name of the limit.
SoftThe soft limit.

The hard limit.

public long Hard { get; init; }

Property value

long

Gets the name of the limit.

public string Name { get; init; }

Property value

string

The soft limit.

public long Soft { get; init; }

Property value

long

Methods

NameDescription
Deconstruct(string, long, long)
Equals(ContainerUlimit?)
Equals(object?)
GetHashCode()
ToString()

Deconstruct(string, long, long)

public void Deconstruct(out string Name, out long Soft, out long Hard)

Parameters

Name string
Soft long
Hard long

No documentation is available.

Equals overloads

Equals(ContainerUlimit?)

public bool Equals(ContainerUlimit? other)
Parameters
other ContainerUlimit?
Returns

bool

No documentation is available.

Equals(object?)

public override bool Equals(object? obj)
Parameters
obj object?
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(ContainerUlimit?, ContainerUlimit?)
operator !=(ContainerUlimit?, ContainerUlimit?)

operator ==(ContainerUlimit?, ContainerUlimit?)

public static bool operator ==(ContainerUlimit? left, ContainerUlimit? right)

Parameters

left ContainerUlimit?
right ContainerUlimit?

Returns

bool

No documentation is available.

operator !=(ContainerUlimit?, ContainerUlimit?)

public static bool operator !=(ContainerUlimit? left, ContainerUlimit? right)

Parameters

left ContainerUlimit?
right ContainerUlimit?

Returns

bool

No documentation is available.