GSF.IO.FileStructure.Media.DiskMedium.ChangeExtension C# (CSharp) 메소드

ChangeExtension() 공개 메소드

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.
리턴 void
        public void ChangeExtension(string extension, bool isReadOnly, bool isSharingEnabled)
        {
            m_disk.ChangeExtension(extension, isReadOnly, isSharingEnabled);
        }

Usage Example

예제 #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);
 }