# AzureApiManagementPolicyFragmentResource

- Kind: `class`
- Package: [Aspire.Hosting.Azure.ApiManagement](/reference/api/csharp/aspire.hosting.azure.apimanagement.md)
- Version: `17.0.0-preview.1.26567.5`
- Namespace: `Aspire.Hosting.Azure`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.ApiManagement/AzureApiManagementPolicyFragmentResource.cs)
- Inherits: `Resource`
- Implements: `IResource`, `IResourceWithParent`, `IResourceWithParent<AzureApiManagementResource>`

Represents a reusable Azure API Management policy fragment.

## Definition

```csharp
namespace Aspire.Hosting.Azure;

public class AzureApiManagementPolicyFragmentResource
    : Aspire.Hosting.ApplicationModel.Resource,
      Aspire.Hosting.ApplicationModel.IResource,
      Aspire.Hosting.ApplicationModel.IResourceWithParent,
      Aspire.Hosting.ApplicationModel.IResourceWithParent<Aspire.Hosting.Azure.AzureApiManagementResource>
{
    // ...
}
```

## Constructors

- [AzureApiManagementPolicyFragmentResource(string, string, string, string?, AzureApiManagementResource)](/reference/api/csharp/aspire.hosting.azure.apimanagement/azureapimanagementpolicyfragmentresource/constructors.md#constructor-string-string-string-string-azureapimanagementresource) -- Represents a reusable Azure API Management policy fragment.

## Properties

- [Description](/reference/api/csharp/aspire.hosting.azure.apimanagement/azureapimanagementpolicyfragmentresource/properties.md#description) : `string?` `get` -- Gets the optional policy-fragment description.
- [FragmentName](/reference/api/csharp/aspire.hosting.azure.apimanagement/azureapimanagementpolicyfragmentresource/properties.md#fragmentname) : `string` `get` -- Gets the physical policy-fragment identifier in API Management.
- [Parent](/reference/api/csharp/aspire.hosting.azure.apimanagement/azureapimanagementpolicyfragmentresource/properties.md#parent) : [AzureApiManagementResource](/reference/api/csharp/aspire.hosting.azure.apimanagement/azureapimanagementresource.md) `get` -- Gets the parent API Management service.
- [Value](/reference/api/csharp/aspire.hosting.azure.apimanagement/azureapimanagementpolicyfragmentresource/properties.md#value) : `string` `get` -- Gets the XML policy statements contained by the fragment.
