ArcGISCompare.MiscProcs.buildNONSDSName C# (CSharp) Method

buildNONSDSName() static private method

static private buildNONSDSName ( String inName, esriWorkspaceType theWSType ) : String
inName String
theWSType esriWorkspaceType
return String
        internal static String buildNONSDSName(String inName, esriWorkspaceType theWSType)
        {
            switch (theWSType)
              {
            case esriWorkspaceType.esriLocalDatabaseWorkspace:
              return "NONATT_" + inName;
              break;
            case esriWorkspaceType.esriFileSystemWorkspace:
                    if (inName.Length <= 23) return "NONATT_" + inName;
              else
              {
            inName = inName.Substring(30 - inName.Length, inName.Length * 2 - 30);
                        return "NONATT_" + inName;
              }
              break;
            case esriWorkspaceType.esriRemoteDatabaseWorkspace:
                    if (inName.Length <= 23) return "NONATT_" + inName;
              else
              {
            inName = inName.Substring(30 - inName.Length, inName.Length * 2 - 30);
                        return "NONATT_" + inName;
              }
              break;
            default:
              return inName;
              break;
              }
        }