Represents the current state of a VSS file.
Inheritance: VssItemInfo
        private VssFileInfo GetOrCreateFile(VssItemName name)
        {
            VssFileInfo fileInfo;

            if (!fileInfos.TryGetValue(name.PhysicalName, out fileInfo))
            {
                fileInfo = new VssFileInfo(name.PhysicalName, name.LogicalName);
                fileInfos[name.PhysicalName] = fileInfo;
            }
            return(fileInfo);
        }
Exemple #2
0
 private VssFileInfo GetOrCreateFile(VssItemName name)
 {
     VssFileInfo fileInfo;
     if (!fileInfos.TryGetValue(name.PhysicalName, out fileInfo))
     {
         fileInfo = new VssFileInfo(name.PhysicalName, name.LogicalName);
         fileInfos[name.PhysicalName] = fileInfo;
     }
     return fileInfo;
 }
        public void SetFileVersion(VssItemName name, int version)
        {
            VssFileInfo fileInfo = GetOrCreateFile(name);

            fileInfo.Version = version;
        }