OneNoteConversionTool.OutputGenerator.OneNoteGenerator.GetSection C# (CSharp) 메소드

GetSection() 공개 메소드

Gets the ID of an existing section in the given notebook If more than one exists, it returns the first one
public GetSection ( string sectionName, string notebookId ) : string
sectionName string section name
notebookId string ID of the notebook where the section exists
리턴 string
		public string GetSection(string sectionName, string notebookId)
		{
			string sectionId;

			try
			{
				_mApp.OpenHierarchy(sectionName + ".one", notebookId, out sectionId);
			}
			catch (Exception e)
			{
				throw new ApplicationException("Error in GetSection: " + e.Message, e);
			}

			return sectionId;
		}