public string GetRegisterDirectives() { DocumentDirective[] directives = host.RootDocument.GetDirectives("Register"); string retVal = string.Empty; foreach (DocumentDirective dd in directives) retVal += dd.ToString(); return retVal; }