Compartilhar via


SettingsStore.GetLastWriteTime Method

Provides the last write time of the properties and sub-collections immediate to the given collection.

Namespace:  Microsoft.VisualStudio.Settings
Assemblies:   Microsoft.VisualStudio.Settings (in Microsoft.VisualStudio.Settings.dll)
  Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)

Syntax

'Declaração
Public MustOverride Function GetLastWriteTime ( _
    collectionPath As String _
) As DateTime
public abstract DateTime GetLastWriteTime(
    string collectionPath
)

Parameters

Return Value

Type: System.DateTime
Last update time to the collection in [!:DateTimeKind.Local] format.

Exceptions

Exception Condition
ArgumentException

If the collection does not exist, method throws this exception.

Remarks

The method does report any further changes internal to the sub-collections (i.e. non-recursive). The last write time of a collection is updated if properties are created, deleted or their values modified or if a sub-collection is created or deleted.

.NET Framework Security

See Also

Reference

SettingsStore Class

Microsoft.VisualStudio.Settings Namespace