# ResourcePropertySnapshot

- Kind: `record`
- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Version: `13.3.0`
- Namespace: `Aspire.Hosting.ApplicationModel`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/CustomResourceSnapshot.cs)
- Implements: `IEquatable<ResourcePropertySnapshot>`

A snapshot of the resource property.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public sealed record ResourcePropertySnapshot
    : System.IEquatable<Aspire.Hosting.ApplicationModel.ResourcePropertySnapshot>
{
    // ...
}
```

## Constructors

- [ResourcePropertySnapshot(string, object?)](/reference/api/csharp/aspire.hosting/resourcepropertysnapshot/constructors.md#constructor-string-object) -- A snapshot of the resource property.

## Properties

- [IsSensitive](/reference/api/csharp/aspire.hosting/resourcepropertysnapshot/properties.md#issensitive) : `bool` `get; init` -- Whether this property is considered sensitive or not.
- [Name](/reference/api/csharp/aspire.hosting/resourcepropertysnapshot/properties.md#name) : `string` `get; init` -- The name of the property.
- [Value](/reference/api/csharp/aspire.hosting/resourcepropertysnapshot/properties.md#value) : `object?` `get; init` -- The value of the property.

## Methods

- [<Clone>$](/reference/api/csharp/aspire.hosting/resourcepropertysnapshot/methods.md#clone) : [ResourcePropertySnapshot](/reference/api/csharp/aspire.hosting/resourcepropertysnapshot.md)
- [Deconstruct(string, object?)](/reference/api/csharp/aspire.hosting/resourcepropertysnapshot/methods.md#deconstruct-string-object)
- [Equals(object?)](/reference/api/csharp/aspire.hosting/resourcepropertysnapshot/methods.md#equals-object) : `bool` -- Determines whether the specified object is equal to the current object.
- [Equals(ResourcePropertySnapshot?)](/reference/api/csharp/aspire.hosting/resourcepropertysnapshot/methods.md#equals-resourcepropertysnapshot) : `bool` -- Indicates whether the current object is equal to another object of the same type.
- [GetHashCode](/reference/api/csharp/aspire.hosting/resourcepropertysnapshot/methods.md#gethashcode) : `int` -- Serves as the default hash function.
- [op_Equality(ResourcePropertySnapshot?, ResourcePropertySnapshot?)](/reference/api/csharp/aspire.hosting/resourcepropertysnapshot/methods.md#op-equality-resourcepropertysnapshot-resourcepropertysnapshot) : `bool` `static`
- [op_Inequality(ResourcePropertySnapshot?, ResourcePropertySnapshot?)](/reference/api/csharp/aspire.hosting/resourcepropertysnapshot/methods.md#op-inequality-resourcepropertysnapshot-resourcepropertysnapshot) : `bool` `static`
- [ToString](/reference/api/csharp/aspire.hosting/resourcepropertysnapshot/methods.md#tostring) : `string` -- Returns a string that represents the current object.
