Reference documentation and code samples for the Google.Cloud.Location class Locations.
An abstract interface that provides location-related information for
a service. Service-specific metadata is provided through the
[Location.metadata][google.cloud.location.Location.metadata] field.
public static void BindService(ServiceBinderBase serviceBinder, Locations.LocationsBase serviceImpl)
Register service method with a service binder with or without implementation. Useful when customizing the service binding logic.
Note: this method is part of an experimental API that can change or be removed without any prior notice.
[[["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 documentation provides reference information for the \u003ccode\u003eGoogle.Cloud.Location.Locations\u003c/code\u003e class, which offers location-related data for a service, including service-specific metadata.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLocations\u003c/code\u003e class inherits from the .NET \u003ccode\u003eobject\u003c/code\u003e class and includes inherited members like \u003ccode\u003eGetHashCode()\u003c/code\u003e, \u003ccode\u003eGetType()\u003c/code\u003e, \u003ccode\u003eMemberwiseClone()\u003c/code\u003e, and \u003ccode\u003eToString()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe namespace for this class is \u003ccode\u003eGoogle.Cloud.Location\u003c/code\u003e, and it is found in the \u003ccode\u003eGoogle.Cloud.Location.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation lists multiple versions of this class, with the latest version being 2.3.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLocations\u003c/code\u003e class includes methods for binding service, \u003ccode\u003eBindService(LocationsBase)\u003c/code\u003e and \u003ccode\u003eBindService(ServiceBinderBase, LocationsBase)\u003c/code\u003e, to define and register service methods with a server.\u003c/p\u003e\n"]]],[],null,["# Google.Cloud.Location - Class Locations (2.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.3.0 (latest)](/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.Locations)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Location/2.2.0/Google.Cloud.Location.Locations)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Location/2.1.0/Google.Cloud.Location.Locations)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Location/2.0.0/Google.Cloud.Location.Locations)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Location/1.0.0/Google.Cloud.Location.Locations) \n\n public static class Locations\n\nReference documentation and code samples for the Google.Cloud.Location class Locations.\n\nAn abstract interface that provides location-related information for\na service. Service-specific metadata is provided through the\n\\[Location.metadata\\]\\[google.cloud.location.Location.metadata\\] field. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Locations \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.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Location](/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location)\n\nAssembly\n--------\n\nGoogle.Cloud.Location.dll\n\nMethods\n-------\n\n### BindService(LocationsBase)\n\n public static ServerServiceDefinition BindService(Locations.LocationsBase serviceImpl)\n\nCreates service definition that can be registered with a server\n\n### BindService(ServiceBinderBase, LocationsBase)\n\n public static void BindService(ServiceBinderBase serviceBinder, Locations.LocationsBase serviceImpl)\n\nRegister service method with a service binder with or without implementation. Useful when customizing the service binding logic.\nNote: this method is part of an experimental API that can change or be removed without any prior notice."]]