WebPart.ClientName property

Gets the unique name of the Web Part used by the client-side Web Part Page Service Component (WPSC).

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public string ClientName { get; }

Property value

Type: System.String
A string specifying the unique identifier for the Web Part.

The ClientName property is available only at run time.