Share via


ServerDocument.ManifestModifiedTime Property (2003 System)

Gets a DateTime that specifies when the application manifest was last modified.

Namespace:  Microsoft.VisualStudio.Tools.Applications.Runtime
Assembly:  Microsoft.VisualStudio.Tools.Applications.Runtime (in Microsoft.VisualStudio.Tools.Applications.Runtime.dll)

Syntax

'Declaration
Public ReadOnly Property ManifestModifiedTime As DateTime
'Usage
Dim instance As ServerDocument
Dim value As DateTime

value = instance.ManifestModifiedTime
public DateTime ManifestModifiedTime { get; }

Property Value

Type: System.DateTime
A DateTime that specifies when the application manifest was last modified.

Examples

The following code example creates a new ServerDocument, and then uses the ManifestModifiedTime property to display when the manifest was last modified. This example requires a reference to the Microsoft.VisualStudio.Tools.Applications.Runtime assembly, and an Imports (for Visual Basic) or using (for C#) statement for the Microsoft.VisualStudio.Tools.Applications.Runtime namespace at the top of your code file.

Private Sub DisplayModifiedTime(ByVal fileName As String)
    If ServerDocument.IsCustomized(fileName) Then
        Dim serverDocument1 As ServerDocument = Nothing
        Try
            serverDocument1 = New ServerDocument(fileName)
            Dim dateTime1 As DateTime = serverDocument1.ManifestModifiedTime
            MsgBox("The manifest was last modified on " + _
                dateTime1.Date.ToString())
        Finally
            If Not serverDocument1 Is Nothing Then
                serverDocument1.Close()
            End If
        End Try
    Else
        MsgBox("The specified document is not " + _
            "customized.")
    End If
End Sub
private void DisplayModifiedTime(string fileName)
{
    if (ServerDocument.IsCustomized(fileName))
    {
        ServerDocument serverDocument1 = null;
        try 
        {
            serverDocument1 = new ServerDocument(fileName);
            DateTime dateTime1 = serverDocument1.ManifestModifiedTime;
            MessageBox.Show("The manifest was last modified on " +
                dateTime1.Date.ToString());
        }
        finally
        {
            if (serverDocument1 != null)
                serverDocument1.Close();
        }
    }
    else
    {
        MessageBox.Show("The specified document is not " +
            "customized.");
    }
}

Permissions

See Also

Reference

ServerDocument Class

ServerDocument Members

Microsoft.VisualStudio.Tools.Applications.Runtime Namespace