| Andy Xu[MSFT] 2004-06-20, 11:04 pm |
| Or simply use typeof operator with class as argument. it will work as well.
Andy Xu [MSFT]
Commerce Server Team
--
This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm
Note: For the benefit of the community-at-large, all responses to this message are best directed to the newsgroup/thread from which they originated.
--------------------
From: jasonsirota@gmail.com (Jason Sirota)
Newsgroups: microsoft.public.commerceserver.general
Subject: Re: Error when trying to create new Discount with API
Date: 14 Jun 2004 10:31:00 -0700
Organization: http://groups.google.com
Lines: 3
Message-ID: <12e66dac.0406140931.716e4297@posting.google.com>
References: <12e66dac.0406111514.55a83186@posting.google.com>
NNTP-Posting-Host: 216.103.134.129
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1087234261 11760 127.0.0.1 (14 Jun 2004 17:31:01 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 14 Jun 2004 17:31:01 +0000 (UTC)
Path: cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-online.de!news.glorb.com!postnews1.google.com!not-for-mail
Xref: cpmsftngxa10.phx.gbl microsoft.public.commerceserver.general:13987
X-Tomcat-NG: microsoft.public.commerceserver.general
Just in case anyone else has this problem, instead of using
System.Type.GetType you just use GetType(Discount). The argument to
the GetType operator is the object rather than the object name string.
|