# CopyFilePattern

- Kind: `record`
- Package: [Aspire.Hosting.JavaScript](/reference/api/csharp/aspire.hosting.javascript.md)
- Version: `13.4.0`
- Namespace: `Aspire.Hosting.JavaScript`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.JavaScript/CopyFilePattern.cs)
- Implements: `IEquatable<CopyFilePattern>`

Represents a file pattern for copying dependency files in a Dockerfile.

## Definition

```csharp
namespace Aspire.Hosting.JavaScript;

public sealed record CopyFilePattern
    : System.IEquatable<Aspire.Hosting.JavaScript.CopyFilePattern>
{
    // ...
}
```

## Constructors

- [CopyFilePattern(string, string)](/reference/api/csharp/aspire.hosting.javascript/copyfilepattern/constructors.md#constructor-string-string) -- Represents a file pattern for copying dependency files in a Dockerfile.

## Properties

- [Destination](/reference/api/csharp/aspire.hosting.javascript/copyfilepattern/properties.md#destination) : `string` `get; init` -- The destination path where files should be copied (e.g., "./").
- [Source](/reference/api/csharp/aspire.hosting.javascript/copyfilepattern/properties.md#source) : `string` `get; init` -- The source pattern for files to copy (e.g., "package*.json").

## Methods

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