コード例 #1
0
  /// <summary>ReadXml</summary>
  public static void ReadXml
  (
   ref string   filenameXml,
   ref DataSet  dataSet,
   ref string   exceptionMessage,
   ref string[] columnName
  )
  {
   HttpContext  httpContext  =  HttpContext.Current;
   
   try
   {
    UtilityXml.ReadXml
    (
     ref dataSet,
     ref exceptionMessage,
     ref filenameXml
    );
    if ( exceptionMessage != null )
    {
     return;
    }
    if ( dataSet != null )
    {
     UtilityDatabase.DataSetColumn
     (
      ref dataSet,
      ref columnName,
      ref exceptionMessage
     );
     if ( exceptionMessage != null )
     {
      return;
     }
    }
   }//try
   catch ( Exception exception )
   {
   	exceptionMessage = "Exception: " + exception.Message;
   }
   
   if ( httpContext == null )
   {
   	System.Console.WriteLine( exceptionMessage );
   }

  }//public static void ReadXml()