ArcGISCompare.GeoDbProcs.GetFeatureMetadata C# (CSharp) Method

GetFeatureMetadata() static private method

static private GetFeatureMetadata ( IWorkspace theWS, String theFC ) : string
theWS IWorkspace
theFC String
return string
    internal static string GetFeatureMetadata(IWorkspace theWS, String theFC)
    {
      String theFDef = "None Metadata Found";
      IPropertySet curPS;

      try
      {
        IFeatureClass theFClass = GetFeatureClass(theWS, theFC);
        IDataset theDS = (IDataset)theFClass;
        IFeatureClassName FCN = (IFeatureClassName)theDS.FullName;

        IMetadata MasMeta = (IMetadata)FCN;
        MasMeta.Synchronize(esriMetadataSyncAction.esriMSAAlways, 1);
        curPS = MasMeta.Metadata;

        object[] theO = (object[])curPS.GetProperty("eainfo/detailed/enttyp/enttypd");

        object theS = theO[0];
        return theS.ToString();
      }
      catch (Exception ex) { }

      return theFDef;
    }