BlogEngine.Core.Providers.XmlFileSystemProvider.DeleteFile C# (CSharp) 메소드

DeleteFile() 공개 메소드

deletes a file by virtual path
public DeleteFile ( string VirtualPath ) : void
VirtualPath string virtual path
리턴 void
        public override void DeleteFile(string VirtualPath)
        {
            VirtualPath = RelativeFilePath(VirtualPath);
            if (!this.DirectoryExists(VirtualPath))
                return;
            var aPath = BlogAbsolutePath(VirtualPath);
            var sysFile = new FileInfo(aPath);
            sysFile.Delete();
        }