Resource Properties
ClassProperties3 members
Represents an abstract resource that can be used by an application, that implements
IResource . Gets the annotations associated with the resource.
public virtual ResourceAnnotationCollection Annotations { get; } Gets the name of the resource.
public virtual string Name { get; } Gets the default human-readable name of this resource's type.
public virtual string ResourceTypeDisplayName { get; }Remarks
Override this property to identify the service, such as Redis or PostgreSQL Server, independently of its technical resource type. The default is the resource type. This label does not change the resource name, service discovery, or OpenTelemetry identity. Use
ResourceBuilderExtensions.WithResourceTypeDisplayName to override the label for an instance.