Metodo UtilitySetFileReadOnly 
             | 
          
        
         
            Imposta la proprietà readOnly del file passato.
            Se non ci riesce perché il file è bloccato restituisce false.
            Se il file non esiste restituisce false.
            
 
    Namespace: 
   DedNet.Core
    Assembly:
   DedNet (in DedNet.dll) Versione: 24.6.0.0 (24.6.0.0)
Sintassipublic static bool SetFileReadOnly(
	string fileName,
	bool readOnly
)
Public Shared Function SetFileReadOnly ( 
	fileName As String,
	readOnly As Boolean
) As Boolean
public:
static bool SetFileReadOnly(
	String^ fileName, 
	bool readOnly
)
static member SetFileReadOnly : 
        fileName : string * 
        readOnly : bool -> bool 
Parametri
- fileName
 - Tipo: SystemString
File di cui impostare la proprietà readonly. - readOnly
 - Tipo: SystemBoolean
Indica se deve essere impostato readonly o no 
Valore di ritorno
Tipo: 
Boolean
Vedi anche