public static void BindService(ServiceBinderBase serviceBinder, TargetInstances.TargetInstancesBase 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-08 UTC."],[[["\u003cp\u003eThe latest version of the TargetInstances API is 3.6.0, and there are multiple older versions available, ranging from 1.0.0 to 3.5.0.\u003c/p\u003e\n"],["\u003cp\u003eTargetInstances is a static class within the Google.Cloud.Compute.V1 namespace, used for managing target instances within the Google Cloud Compute service.\u003c/p\u003e\n"],["\u003cp\u003eThe TargetInstances class inherits from the .NET Object class and includes methods for server-side service binding, such as \u003ccode\u003eBindService\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThere are two overloaded \u003ccode\u003eBindService\u003c/code\u003e methods, one that takes a \u003ccode\u003eTargetInstances.TargetInstancesBase\u003c/code\u003e and returns a \u003ccode\u003eServerServiceDefinition\u003c/code\u003e, and one that takes a \u003ccode\u003eServiceBinderBase\u003c/code\u003e and \u003ccode\u003eTargetInstances.TargetInstancesBase\u003c/code\u003e that returns void.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTargetInstancesBase\u003c/code\u003e object that is passed into the \u003ccode\u003eBindService\u003c/code\u003e methods holds the logic that the server will use.\u003c/p\u003e\n"]]],[],null,[]]