コード例 #1
0
 protected override bool ParseCore(string path, bool nothrow)
 {
     if (base.ParseCore(path, nothrow))
     {
         if (this.IsTemporaryEdbFile)
         {
             base.IsValid = false;
             if (!nothrow)
             {
                 throw new ArgumentException(DataStrings.ErrorEdbFileCannotBeTmp(path), "path");
             }
         }
         else
         {
             string fileName = Path.GetFileName(base.PathName);
             try
             {
                 LocalLongFullPath.ValidateFilePath(Path.Combine(Path.Combine(EdbFilePath.DefaultEdbFilePath, "LocalCopies"), fileName) + "0000");
             }
             catch (FormatException innerException)
             {
                 base.IsValid = false;
                 if (!nothrow)
                 {
                     throw new ArgumentException(DataStrings.ErrorEdbFileNameTooLong(fileName), innerException);
                 }
             }
         }
     }
     if (!base.IsValid && !nothrow)
     {
         throw new ArgumentException(DataStrings.ErrorEdbFilePathCannotConvert(path));
     }
     return(base.IsValid);
 }
コード例 #2
0
 // Token: 0x06000082 RID: 130 RVA: 0x00003E3C File Offset: 0x0000203C
 public void ValidateFilePathLength()
 {
     LocalLongFullPath.ValidateFilePath(base.PathName);
 }