ServerVersionRegistry.BuildIdentityString(String, Assembly) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Builds a standard identity string from an SDK name and assembly version.
Format: {sdkName}/{version} (dotnet/{major}.{minor}).
public static string BuildIdentityString(string sdkName, System.Reflection.Assembly assembly);
static member BuildIdentityString : string * System.Reflection.Assembly -> string
Public Shared Function BuildIdentityString (sdkName As String, assembly As Assembly) As String
Parameters
- sdkName
- String
The SDK identifier (e.g., azure-ai-agentserver-responses).
- assembly
- Assembly
The assembly to read the version from.
Returns
A formatted identity string.