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
'宣告
Public MustOverride Function GetLastWriteTime ( _
collectionPath As String _
) As DateTime
public abstract DateTime GetLastWriteTime(
string collectionPath
)
Parameters
- collectionPath
Type: System.String
Path of the collection.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.