SPView.ID Property

Gets the GUID that identifies the view.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

[ClientCallableConstraintAttribute(Type = ClientCallableConstraintType.NotEmpty)]
[ClientCallableAttribute(Name = "Id")]
public Guid ID { get; }

Property Value

Type: System.Guid
A System.Guid structure that identifies the view.

Returns Empty if the view has not been added to the collection of views for the list.