part of this value.
If not, Location will throw InvalidOperationException.
If this value has been retrived from Google Compute Engine, the it's format will be the one
described above.
Properties
InstanceId
public string InstanceId { get; }
The Instance ID of the GCE instance on which this is running. This is never null.
[[["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\u003eThe \u003ccode\u003eGcePlatformDetails\u003c/code\u003e class provides information about the Google Compute Engine (GCE) environment, such as the project ID, instance ID, and zone name.\u003c/p\u003e\n"],["\u003cp\u003eYou can construct \u003ccode\u003eGcePlatformDetails\u003c/code\u003e by providing JSON metadata, project ID, instance ID, and zone name, with all parameters required to be not \u003ccode\u003enull\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTryLoad\u003c/code\u003e method can be used to create a \u003ccode\u003eGcePlatformDetails\u003c/code\u003e instance from GCE metadata, returning \u003ccode\u003enull\u003c/code\u003e if the metadata does not represent a GCE instance.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLocation\u003c/code\u003e property is derived from the \u003ccode\u003eZoneName\u003c/code\u003e and will return the zone name if the zone name is formatted correctly, or throw an \u003ccode\u003eInvalidOperationException\u003c/code\u003e otherwise.\u003c/p\u003e\n"],["\u003cp\u003eThe most recent version available is 4.10.0, and there are several previous versions available, such as 4.8.0, 4.4.0, 4.3.1, 4.2.0, 4.0.0, and 3.2.0.\u003c/p\u003e\n"]]],[],null,[]]