public sealed class AttachTrustRequest : IMessage<AttachTrustRequest>, IEquatable<AttachTrustRequest>, IDeepCloneable<AttachTrustRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Managed Service for Microsoft Active Directory v1 API class AttachTrustRequest.
Request message for
[AttachTrust][google.cloud.managedidentities.v1.AttachTrust]
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003eAttachTrustRequest\u003c/code\u003e class within the Google Cloud Managed Identities v1 API, specifically for .NET development.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAttachTrustRequest\u003c/code\u003e class is a request message for attaching a trust to a managed identity domain, implementing interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt is an inherited class of object, and has a namespace of \u003ccode\u003eGoogle.Cloud.ManagedIdentities.V1\u003c/code\u003e, with its assembly being the \u003ccode\u003eGoogle.Cloud.ManagedIdentities.V1.dll\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAttachTrustRequest\u003c/code\u003e class has two constructors and three main properties: \u003ccode\u003eDomainName\u003c/code\u003e, \u003ccode\u003eName\u003c/code\u003e, and \u003ccode\u003eTrust\u003c/code\u003e, which are utilized to define and create the attach trust requests.\u003c/p\u003e\n"],["\u003cp\u003eThere are 6 different versions of the \u003ccode\u003eAttachTrustRequest\u003c/code\u003e class available for use, with the most current one being 3.3.0.\u003c/p\u003e\n"]]],[],null,["# Managed Service for Microsoft Active Directory v1 API - Class AttachTrustRequest (3.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.3.0 (latest)](/dotnet/docs/reference/Google.Cloud.ManagedIdentities.V1/latest/Google.Cloud.ManagedIdentities.V1.AttachTrustRequest)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.ManagedIdentities.V1/3.2.0/Google.Cloud.ManagedIdentities.V1.AttachTrustRequest)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.ManagedIdentities.V1/3.1.0/Google.Cloud.ManagedIdentities.V1.AttachTrustRequest)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.ManagedIdentities.V1/3.0.0/Google.Cloud.ManagedIdentities.V1.AttachTrustRequest)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.ManagedIdentities.V1/2.3.0/Google.Cloud.ManagedIdentities.V1.AttachTrustRequest)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.ManagedIdentities.V1/2.2.0/Google.Cloud.ManagedIdentities.V1.AttachTrustRequest) \n\n public sealed class AttachTrustRequest : IMessage\u003cAttachTrustRequest\u003e, IEquatable\u003cAttachTrustRequest\u003e, IDeepCloneable\u003cAttachTrustRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Managed Service for Microsoft Active Directory v1 API class AttachTrustRequest.\n\nRequest message for\n\\[AttachTrust\\]\\[google.cloud.managedidentities.v1.AttachTrust\\] \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e AttachTrustRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[AttachTrustRequest](/dotnet/docs/reference/Google.Cloud.ManagedIdentities.V1/latest/Google.Cloud.ManagedIdentities.V1.AttachTrustRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AttachTrustRequest](/dotnet/docs/reference/Google.Cloud.ManagedIdentities.V1/latest/Google.Cloud.ManagedIdentities.V1.AttachTrustRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[AttachTrustRequest](/dotnet/docs/reference/Google.Cloud.ManagedIdentities.V1/latest/Google.Cloud.ManagedIdentities.V1.AttachTrustRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.ManagedIdentities.V1](/dotnet/docs/reference/Google.Cloud.ManagedIdentities.V1/latest/Google.Cloud.ManagedIdentities.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.ManagedIdentities.V1.dll\n\nConstructors\n------------\n\n### AttachTrustRequest()\n\n public AttachTrustRequest()\n\n### AttachTrustRequest(AttachTrustRequest)\n\n public AttachTrustRequest(AttachTrustRequest other)\n\nProperties\n----------\n\n### DomainName\n\n public DomainName DomainName { get; set; }\n\n[DomainName](/dotnet/docs/reference/Google.Cloud.ManagedIdentities.V1/latest/Google.Cloud.ManagedIdentities.V1.DomainName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.ManagedIdentities.V1/latest/Google.Cloud.ManagedIdentities.V1.AttachTrustRequest#Google_Cloud_ManagedIdentities_V1_AttachTrustRequest_Name) resource name property.\n\n### Name\n\n public string Name { get; set; }\n\nRequired. The resource domain name, project name and location using the form:\n`projects/{project_id}/locations/global/domains/{domain_name}`\n\n### Trust\n\n public Trust Trust { get; set; }\n\nRequired. The domain trust resource."]]