[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eLayer\u003c/code\u003e class in the Grafeas v1 API represents metadata specific to a layer of a Docker image.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the Grafeas v1 API's \u003ccode\u003eLayer\u003c/code\u003e class is version 3.7.0, with versions ranging down to 2.2.0 available.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eLayer\u003c/code\u003e inherits from \u003ccode\u003eobject\u003c/code\u003e and implements interfaces like \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\u003eThe class includes properties like \u003ccode\u003eArguments\u003c/code\u003e and \u003ccode\u003eDirective\u003c/code\u003e, representing the recovered arguments and Dockerfile directive used to construct the layer, respectively.\u003c/p\u003e\n"],["\u003cp\u003eTwo constructors are available: a default constructor \u003ccode\u003eLayer()\u003c/code\u003e and a copy constructor \u003ccode\u003eLayer(Layer other)\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Grafeas v1 API - Class Layer (3.10.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.10.0 (latest)](/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.Layer)\n- [3.8.0](/dotnet/docs/reference/Grafeas.V1/3.8.0/Grafeas.V1.Layer)\n- [3.7.0](/dotnet/docs/reference/Grafeas.V1/3.7.0/Grafeas.V1.Layer)\n- [3.6.0](/dotnet/docs/reference/Grafeas.V1/3.6.0/Grafeas.V1.Layer)\n- [3.5.0](/dotnet/docs/reference/Grafeas.V1/3.5.0/Grafeas.V1.Layer)\n- [3.4.0](/dotnet/docs/reference/Grafeas.V1/3.4.0/Grafeas.V1.Layer)\n- [3.3.0](/dotnet/docs/reference/Grafeas.V1/3.3.0/Grafeas.V1.Layer)\n- [3.2.0](/dotnet/docs/reference/Grafeas.V1/3.2.0/Grafeas.V1.Layer)\n- [3.1.0](/dotnet/docs/reference/Grafeas.V1/3.1.0/Grafeas.V1.Layer)\n- [3.0.0](/dotnet/docs/reference/Grafeas.V1/3.0.0/Grafeas.V1.Layer)\n- [2.4.0](/dotnet/docs/reference/Grafeas.V1/2.4.0/Grafeas.V1.Layer)\n- [2.3.0](/dotnet/docs/reference/Grafeas.V1/2.3.0/Grafeas.V1.Layer)\n- [2.2.0](/dotnet/docs/reference/Grafeas.V1/2.2.0/Grafeas.V1.Layer) \n\n public sealed class Layer : IMessage\u003cLayer\u003e, IEquatable\u003cLayer\u003e, IDeepCloneable\u003cLayer\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Grafeas v1 API class Layer.\n\nLayer holds metadata specific to a layer of a Docker image. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Layer \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Layer](/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.Layer), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Layer](/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.Layer), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Layer](/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.Layer), [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[Grafeas.V1](/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1)\n\nAssembly\n--------\n\nGrafeas.V1.dll\n\nConstructors\n------------\n\n### Layer()\n\n public Layer()\n\n### Layer(Layer)\n\n public Layer(Layer other)\n\nProperties\n----------\n\n### Arguments\n\n public string Arguments { get; set; }\n\nThe recovered arguments to the Dockerfile directive.\n\n### Directive\n\n public string Directive { get; set; }\n\nRequired. The recovered Dockerfile directive used to construct this layer.\nSee \u003chttps://docs.docker.com/engine/reference/builder/\u003e for more information."]]