/// <include file='doc\RemotingSurrogateSelector.uex' path='docs/doc[@for="RemotingSurrogateSelector.SetRootObject"]/*' /> public void SetRootObject(Object obj) { if (obj == null) { throw new ArgumentNullException("obj"); } _rootObj = obj; SoapMessageSurrogate soapMsg = _messageSurrogate as SoapMessageSurrogate; if (null != soapMsg) { soapMsg.SetRootObject(_rootObj); } }
/// <summary>Sets the object at the root of the object graph.</summary> /// <param name="obj">The object at the root of the object graph. </param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="obj" /> parameter is <see langword="null" />. </exception> // Token: 0x06005B33 RID: 23347 RVA: 0x0013ECB4 File Offset: 0x0013CEB4 public void SetRootObject(object obj) { if (obj == null) { throw new ArgumentNullException("obj"); } this._rootObj = obj; SoapMessageSurrogate soapMessageSurrogate = this._messageSurrogate as SoapMessageSurrogate; if (soapMessageSurrogate != null) { soapMessageSurrogate.SetRootObject(this._rootObj); } }