GSF.IO.FileStructure.Media.DiskMedium.ChangeShareMode C# (CSharp) Method

ChangeShareMode() public method

Reopens the file with different permissions.
public ChangeShareMode ( bool isReadOnly, bool isSharingEnabled ) : void
isReadOnly bool If the file should be reopened as readonly
isSharingEnabled bool If the file should share read privileges.
return void
        public void ChangeShareMode(bool isReadOnly, bool isSharingEnabled)
        {
            m_disk.ChangeShareMode(isReadOnly, isSharingEnabled);
        }

Usage Example

Ejemplo n.º 1
0
 /// <summary>
 /// Reopens the file with different permissions.
 /// </summary>
 /// <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 ChangeShareMode(bool isReadOnly, bool isSharingEnabled)
 {
     m_stream.ChangeShareMode(isReadOnly, isSharingEnabled);
 }