confluent-kafka-dotnet
Show / Hide Table of Contents

Class ConfigResource

A class representing resources that have configs.

Inheritance
object
ConfigResource
Inherited Members
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: Confluent.Kafka.Admin
Assembly: Confluent.Kafka.dll
Syntax
public class ConfigResource

Properties

Name

The resource name (required)

Declaration
public string Name { get; set; }
Property Value
Type Description
string

Type

The resource type (required)

Declaration
public ResourceType Type { get; set; }
Property Value
Type Description
ResourceType

Methods

Equals(object)

Tests whether this ConfigResource instance is equal to the specified object.

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
object obj

The object to test.

Returns
Type Description
bool

true if obj is a ConfigResource and all properties are equal. false otherwise.

Overrides
object.Equals(object)

GetHashCode()

Returns a hash code for this ConfigResource.

Declaration
public override int GetHashCode()
Returns
Type Description
int

An integer that specifies a hash value for this ConfigResource.

Overrides
object.GetHashCode()

ToString()

Returns a string representation of the ConfigResource object.

Declaration
public override string ToString()
Returns
Type Description
string

A string representation of the ConfigResource object.

Overrides
object.ToString()

Operators

operator ==(ConfigResource, ConfigResource)

Tests whether ConfigResource instance a is equal to ConfigResource instance b.

Declaration
public static bool operator ==(ConfigResource a, ConfigResource b)
Parameters
Type Name Description
ConfigResource a

The first ConfigResource instance to compare.

ConfigResource b

The second ConfigResource instance to compare.

Returns
Type Description
bool

true if ConfigResource instances a and b are equal. false otherwise.

operator !=(ConfigResource, ConfigResource)

Tests whether ConfigResource instance a is not equal to ConfigResource instance b.

Declaration
public static bool operator !=(ConfigResource a, ConfigResource b)
Parameters
Type Name Description
ConfigResource a

The first ConfigResource instance to compare.

ConfigResource b

The second ConfigResource instance to compare.

Returns
Type Description
bool

true if ConfigResource instances a and b are not equal. false otherwise.

In this article