コード例 #1
0
        private string _Service      = "";    // This is a cached DdemlServer property.


        /// <overloads>
        /// <summary>
        /// </summary>
        /// </overloads>
        /// <summary>
        /// This initializes a new instance of the <c>DdeServer</c> class that can register the specified service name.
        /// </summary>
        /// <param name="service">
        /// The service name that this instance can register.
        /// </param>
        /// <exception cref="ArgumentException">
        /// This is thown when service exceeds 255 characters..
        /// </exception>
        /// <exception cref="ArgumentNullException">
        /// This is thrown when service is a null reference.
        /// </exception>
        public DdeServer(string service)
            : this(service, DdeContext.GetDefault())
        {
        }
コード例 #2
0
 /// <summary>
 /// This initializes a new instance of the <c>DdeServer</c> class that can register the specified service name and using the specified
 /// synchronizing object.
 /// </summary>
 /// <param name="service">
 /// The service name that this instance can register.
 /// </param>
 /// <param name="synchronizingObject">
 /// The synchronizing object to use for this instance.
 /// </param>
 /// <exception cref="ArgumentException">
 /// This is thown when service exceeds 255 characters..
 /// </exception>
 /// <exception cref="ArgumentNullException">
 /// This is thrown when service is a null reference.
 /// </exception>
 public DdeServer(string service, ISynchronizeInvoke synchronizingObject)
     : this(service, DdeContext.GetDefault(synchronizingObject))
 {
 }