Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

GetResourceName

Method
📦 Aspire.Hosting v17.0.0
func (Resource) GetResourceName() (string, error)

Signature

methodGetResourceName
Gets the name of the resource from a builder.
GetResourceName() (string, error)
(string, error)

The resource name.

Returns (string, error).

Applies to

This method applies to the following types: