File.MajorVersion - Propriété
Gets a value that specifies the major version of the file.
Espace de noms : Microsoft.SharePoint.Client
Assemblys : Microsoft.SharePoint.Client.Silverlight (dans Microsoft.SharePoint.Client.Silverlight.dll); Microsoft.SharePoint.Client.Phone (dans Microsoft.SharePoint.Client.Phone.dll) Microsoft.SharePoint.Client (dans Microsoft.SharePoint.Client.dll)
Syntaxe
'Déclaration
Public ReadOnly Property MajorVersion As Integer
Get
'Utilisation
Dim instance As File
Dim value As Integer
value = instance.MajorVersion
public int MajorVersion { get; }
Valeur de propriété
Type : System.Int32
Returns a Int32 instance representing the major version of the file.
Exceptions
Exception | Condition |
---|---|
[System.ArgumentException] | Version information is missing, invalid, or could not be retrieved. Error code: - 2147024809. |
[System.IO.FileNotFoundException] | File cannot be found. Error code: -2147024894. |
[System.UnauthorizedAccessException] | The current user has insufficient permissions. Error code: -2147024891. |