GSF.IO.FileStructure.Media.DiskMedium.ChangeExtension C# (CSharp) Méthode

ChangeExtension() public méthode

Changes the extension of the current file.
public ChangeExtension ( string extension, bool isReadOnly, bool isSharingEnabled ) : void
extension string the new extension
isReadOnly bool If the file should be reopened as readonly
isSharingEnabled bool If the file should share read privileges.
Résultat void
        public void ChangeExtension(string extension, bool isReadOnly, bool isSharingEnabled)
        {
            m_disk.ChangeExtension(extension, isReadOnly, isSharingEnabled);
        }

Usage Example

Exemple #1
0
 /// <summary>
 /// Changes the extension of the current file.
 /// </summary>
 /// <param name="extension">the new extension</param>
 /// <param name="isReadOnly">If the file should be reopened as readonly</param>
 /// <param name="isSharingEnabled">If the file should share read privileges.</param>
 public void ChangeExtension(string extension, bool isReadOnly, bool isSharingEnabled)
 {
     m_stream.ChangeExtension(extension, isReadOnly, isSharingEnabled);
 }