---
title: "XmlTransformation"
description: "Namespace: Lacuna.Pki"
canonical: "https://docs.lacunasoftware.com/api/Lacuna.Pki/XmlTransformation"
locale: "pt-BR"
product: "PKI SDK"
last_updated: "2026-06-02"
---

# XmlTransformation

**Namespace:** `Lacuna.Pki`  
**Assembly:** `Lacuna.Pki`  
_Class_

```csharp
public abstract class XmlTransformation
```

**Hierarquia:** [`object`](https://learn.microsoft.com/dotnet/api/system.object) → `XmlTransformation`

## Construtores

### `XmlTransformation()`

```csharp
protected XmlTransformation()
```

---

## Campos

### `C14N`

```csharp
public static readonly XmlTransformation C14N
```

**Retorno**

[`XmlTransformation`](https://docs.lacunasoftware.com/api/Lacuna.Pki/XmlTransformation)

---

### `C14NWithComments`

```csharp
public static readonly XmlTransformation C14NWithComments
```

**Retorno**

[`XmlTransformation`](https://docs.lacunasoftware.com/api/Lacuna.Pki/XmlTransformation)

---

### `EnvelopedSignature`

```csharp
public static readonly XmlTransformation EnvelopedSignature
```

**Retorno**

[`XmlTransformation`](https://docs.lacunasoftware.com/api/Lacuna.Pki/XmlTransformation)

---

### `ExclusiveC14N`

```csharp
public static readonly XmlTransformation ExclusiveC14N
```

**Retorno**

[`XmlTransformation`](https://docs.lacunasoftware.com/api/Lacuna.Pki/XmlTransformation)

---

### `ExclusiveC14NWithComments`

```csharp
public static readonly XmlTransformation ExclusiveC14NWithComments
```

**Retorno**

[`XmlTransformation`](https://docs.lacunasoftware.com/api/Lacuna.Pki/XmlTransformation)

---

## Propriedades

### `Name`

```csharp
public abstract string Name { get; }
```

**Retorno**

[`string`](https://learn.microsoft.com/dotnet/api/system.string)

---

### `Uri`

```csharp
public abstract string Uri { get; }
```

**Retorno**

[`string`](https://learn.microsoft.com/dotnet/api/system.string)

---

## Métodos

### `CreateXPathTransformation()`

Creates an XPath XML transformation with default exclude Signature elements: not(ancestor-or-self::ds:Signature)

```csharp
public static XmlTransformation CreateXPathTransformation()
```

**Retorno**

[`XmlTransformation`](https://docs.lacunasoftware.com/api/Lacuna.Pki/XmlTransformation)

---

### `CreateXPathTransformation(string, NamespaceManager)`

Creates an XPath XML transformation with specified parameters

```csharp
public static XmlTransformation CreateXPathTransformation(string xpath, NamespaceManager nsm)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `xpath` | [`string`](https://learn.microsoft.com/dotnet/api/system.string) |  |
| `nsm` | [`NamespaceManager`](https://docs.lacunasoftware.com/api/Lacuna.Pki.Xml/NamespaceManager) |  |

**Retorno**

[`XmlTransformation`](https://docs.lacunasoftware.com/api/Lacuna.Pki/XmlTransformation)

---

### `Equals(object)`

```csharp
public override bool Equals(object obj)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `obj` | [`object`](https://learn.microsoft.com/dotnet/api/system.object) |  |

**Retorno**

[`bool`](https://learn.microsoft.com/dotnet/api/system.boolean)

---

### `Equals(XmlTransformation)`

```csharp
public bool Equals(XmlTransformation other)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `other` | [`XmlTransformation`](https://docs.lacunasoftware.com/api/Lacuna.Pki/XmlTransformation) |  |

**Retorno**

[`bool`](https://learn.microsoft.com/dotnet/api/system.boolean)

---

### `GetCanonicalizations()`

```csharp
public static List<XmlTransformation> GetCanonicalizations()
```

**Retorno**

[`List<XmlTransformation>`](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)

---

### `GetHashCode()`

```csharp
public override int GetHashCode()
```

**Retorno**

[`int`](https://learn.microsoft.com/dotnet/api/system.int32)

---

### `GetInstanceByUri(string)`

```csharp
public static XmlTransformation GetInstanceByUri(string uri)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `uri` | [`string`](https://learn.microsoft.com/dotnet/api/system.string) |  |

**Retorno**

[`XmlTransformation`](https://docs.lacunasoftware.com/api/Lacuna.Pki/XmlTransformation)

---

## Operadores

### `operator !=(XmlTransformation, XmlTransformation)`

```csharp
public static bool operator !=(XmlTransformation a, XmlTransformation b)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `a` | [`XmlTransformation`](https://docs.lacunasoftware.com/api/Lacuna.Pki/XmlTransformation) |  |
| `b` | [`XmlTransformation`](https://docs.lacunasoftware.com/api/Lacuna.Pki/XmlTransformation) |  |

**Retorno**

[`bool`](https://learn.microsoft.com/dotnet/api/system.boolean)

---

### `operator ==(XmlTransformation, XmlTransformation)`

```csharp
public static bool operator ==(XmlTransformation a, XmlTransformation b)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `a` | [`XmlTransformation`](https://docs.lacunasoftware.com/api/Lacuna.Pki/XmlTransformation) |  |
| `b` | [`XmlTransformation`](https://docs.lacunasoftware.com/api/Lacuna.Pki/XmlTransformation) |  |

**Retorno**

[`bool`](https://learn.microsoft.com/dotnet/api/system.boolean)

---

## Membros herdados

[`ToString()`](https://learn.microsoft.com/dotnet/api/system.object.tostring), [`Equals(object, object)`](<https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)>), [`ReferenceEquals(object, object)`](https://learn.microsoft.com/dotnet/api/system.object.referenceequals), [`GetType()`](https://learn.microsoft.com/dotnet/api/system.object.gettype), [`MemberwiseClone()`](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone)
