Share via


ComponentState.GetComponentKey Method

Definition

Gets the component key for this component instance. This is used for state persistence and component identification across render modes.

protected internal virtual object? GetComponentKey();
abstract member GetComponentKey : unit -> obj
override this.GetComponentKey : unit -> obj
Protected Friend Overridable Function GetComponentKey () As Object

Returns

The component key, or null if no key is available.

Applies to