cadencii.java.io.File.canWrite C# (CSharp) Method

canWrite() public method

この抽象パス名が示すファイルをアプリケーションが変更できるかどうかを判定します。
public canWrite ( ) : bool
return bool
        public bool canWrite()
        {
            System.IO.FileStream fs = null;
            bool ret = false;
            try {
                fs = System.IO.File.OpenWrite( m_path );
                ret = true;
            } catch {
                ret = false;
            } finally {
                if ( fs != null ) {
                    try {
                        fs.Close();
                    } catch {
                    }
                }
            }
            return ret;
        }