Summary description for UnreferencedObjectEventArgs.
Inheritance: System.EventArgs
コード例 #1
0
 internal virtual void OnUnreferencedObject(UnreferencedObjectEventArgs e)
 {
     if (onUnreferencedObject != null)
     {
         onUnreferencedObject(this, e);
     }
 }
 private void OnUnreferencedObject(object sender, UnreferencedObjectEventArgs e)
 {
     if (Thread.CurrentThread.GetHashCode() == this.currentThread)
     {
         object unreferencedObject = e.UnreferencedObject;
         if ((unreferencedObject != null) && typeof(SoapHeader).IsAssignableFrom(unreferencedObject.GetType()))
         {
             this.unreferencedHeaders.Add((SoapHeader) unreferencedObject);
         }
     }
 }
コード例 #3
0
 private static void XmlParseErrorOnUnreferencedObject(object sender, UnreferencedObjectEventArgs e)
 {
     throw new XmlException("Unrefferenced id " + e.UnreferencedId);
 }
コード例 #4
0
ファイル: MessageObject.cs プロジェクト: tolumania/i20022
 /// <summary>
 /// Handles the UnreferencedObject event of the serializer control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.Xml.Serialization.UnreferencedObjectEventArgs"/> instance containing the event data.</param>
 private void serializer_UnreferencedObject( object sender, UnreferencedObjectEventArgs e )
 {
     _errorText += String.Format( "unreferenced object '{0}' type='{1}'",
         e.UnreferencedId,
         e.UnreferencedObject.GetType().Name );
 }
コード例 #5
0
ファイル: MenuXmlDatabase.cs プロジェクト: pietie/HyperSearch
 private static void xs_UnreferencedObject(object sender, UnreferencedObjectEventArgs e)
 {
 }
コード例 #6
0
 void OnUnreferencedObject(object sender, UnreferencedObjectEventArgs e) {
     if (Thread.CurrentThread.GetHashCode() != this.currentThread) return;
     object o = e.UnreferencedObject;
     if (o == null) return;
     if (typeof(SoapHeader).IsAssignableFrom(o.GetType())) {
         unreferencedHeaders.Add((SoapHeader)o);
     }
 }
        /// <summary>
        /// Extends BeginInvoke so that when a state object is not needed, null does not need to be passed.
        /// <example>
        /// unreferencedobjecteventhandler.BeginInvoke(sender, e, callback);
        /// </example>
        /// </summary>
        public static IAsyncResult BeginInvoke(this UnreferencedObjectEventHandler unreferencedobjecteventhandler, Object sender, UnreferencedObjectEventArgs e, AsyncCallback callback)
        {
            if(unreferencedobjecteventhandler == null) throw new ArgumentNullException("unreferencedobjecteventhandler");

            return unreferencedobjecteventhandler.BeginInvoke(sender, e, callback, null);
        }
コード例 #8
0
 void OnUnreferenced(object obj, UnreferencedObjectEventArgs args)
 {
     // This hasn't happened for me
     Console.WriteLine("OnUnreferenced: " + args.UnreferencedObject.ToString());
 }
コード例 #9
0
 private static void Serializer_UnreferencedObject(object sender, UnreferencedObjectEventArgs e)
 {
     Handle_Unknown_SDMX_Event(null, null,e);
 }
 private static void UnreferencedObject(object sender, UnreferencedObjectEventArgs e)
 {
     Debug.Log("unreferenced object " + sender.ToString() + " " + e.ToString());
 }
コード例 #11
0
        private static void Handle_Unknown_SDMX_Event(XmlElementEventArgs eElementEventArgs,XmlAttributeEventArgs eAttributeEventArgs,UnreferencedObjectEventArgs eObjectEventArgs)
        {
            Exception ex;
            if (eElementEventArgs != null)
            {
                ex = new Exception(Constants.InvalidElement+ eElementEventArgs.Element.Name);
            }
            else if (eAttributeEventArgs != null)
            {
                ex = new Exception(Constants.InvalidAttribute + eAttributeEventArgs.Attr.Name);
            }
            else if (eObjectEventArgs != null)
            {
                ex = new Exception(Constants.LoadingException);
            }
            else
            {
                ex = new Exception(Constants.LoadingException);
            }

            throw ex;
        }
コード例 #12
0
ファイル: Program.cs プロジェクト: elemk0vv/roslyn-1
 private static void serializer_UnreferencedObject(object sender, UnreferencedObjectEventArgs e)
 {
     Console.WriteLine("Unreferenced Object in XML deserialization");
 }
コード例 #13
0
ファイル: Schema.cs プロジェクト: slathrop/xsddiagram
 void schemaSerializer_UnreferencedObject(object sender, UnreferencedObjectEventArgs e)
 {
     this.loadError.Add("Unreferenced object: " + e.UnreferencedId);
 }
コード例 #14
0
ファイル: XmlSerializer.cs プロジェクト: ItsVeryWindy/mono
		internal virtual void OnUnreferencedObject (UnreferencedObjectEventArgs e) 
		{
			if (onUnreferencedObject != null) onUnreferencedObject(this, e);
		}
コード例 #15
0
ファイル: KmlData.cs プロジェクト: RrPt/KmlBrowser
 public void unreferencedObject(object sender, UnreferencedObjectEventArgs e)
 {
     String msg = String.Format("unreferencedObject: {0}  mit ID {1}", e.UnreferencedObject.ToString(),e.UnreferencedId);
     show(msg);
     Console.WriteLine(msg);
 }
コード例 #16
0
 /// <include file='doc\XmlSerializationReader.uex' path='docs/doc[@for="XmlSerializationReader.UnreferencedObject"]/*' />
 protected void UnreferencedObject(string id, object o) {
     if (events.OnUnreferencedObject != null) {
         UnreferencedObjectEventArgs e = new UnreferencedObjectEventArgs(o, id);
         events.OnUnreferencedObject(events.sender, e);
     }
 }
        private static void Serializer_UnreferencedObject(object sender, UnreferencedObjectEventArgs e)
        {
            Console.WriteLine("_________________________________________");
            Console.WriteLine("DateTime: " + DateTime.Now.ToString());

            Console.WriteLine("Unknown Element");
            Console.WriteLine("\t" + e.UnreferencedId + " " + e.UnreferencedObject.ToString());
        }