public static DataRowSharepointMappingCollection GetTheCollection(string ConfigSectionName) { DataRowSharepointMappingConfigSection mappingsSection = (DataRowSharepointMappingConfigSection)ConfigurationManager.GetSection(ConfigSectionName); if (mappingsSection != null) { return(mappingsSection.TransformationToDirectoryMappingItems); } return(null); // OOPS! }
public static DataRowSharepointMappingCollection GetTheCollection() { DataRowSharepointMappingConfigSection mappingsSection = (DataRowSharepointMappingConfigSection)ConfigurationManager.GetSection(MAPPINGS_CONFIGURATION_SECTION_NAME); if (mappingsSection != null) { return(mappingsSection.TransformationToDirectoryMappingItems); } return(null); // OOPS! }