Share via


File.ETag property

Gets a value that specifies the ETag value.

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

Syntax

'Declaration
Public ReadOnly Property ETag As String
    Get
'Usage
Dim instance As File
Dim value As String

value = instance.ETag
public string ETag { get; }

Property value

Type: System.String
Returns a String instance representing the ETag value.

Exceptions

Exception Condition
[System.IO.FileNotFoundException]

File cannot be found. Error code: -2147024894.

[System.UnauthorizedAccessException]

The current user has insufficient permissions. Error code: -2147024891.

Remarks

The ETag response-header field provides the current value of the entity tag for the requested variant. The entity tag may be used for comparison with other entities from the same resource.

See also

Reference

File class

File members

Microsoft.SharePoint.Client namespace