Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Provides the last write time of the properties and sub-collections immediate to the given collection.
Namespace: Microsoft.VisualStudio.Settings
Assembly: Microsoft.VisualStudio.Settings (in Microsoft.VisualStudio.Settings.dll)
Syntax
'Declaration
Public MustOverride Function GetLastWriteTime ( _
collectionPath As String _
) As DateTime
public abstract DateTime GetLastWriteTime(
string collectionPath
)
public:
virtual DateTime GetLastWriteTime(
String^ collectionPath
) abstract
abstract GetLastWriteTime :
collectionPath:string -> DateTime
public abstract function GetLastWriteTime(
collectionPath : String
) : DateTime
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.