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.CoreAssembly: DedNet (in DedNet.dll) Versione: 25.3.0.0 (25.3.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  String
 - File di cui impostare la proprietà readonly.
 - readOnly  Boolean
 - Indica se deve essere impostato readonly o no
 
Valore di ritorno
Boolean
Vedi anche