home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 40 / IOPROG_40.ISO / SOFT / NETFrameworkSDK.exe / comsdk.cab / samples.exe / QuickStart / howto / doc / HelloObj.aspx < prev    next >
Encoding:
Text File  |  2000-06-08  |  955 b   |  33 lines

  1.  
  2. <!-- #include virtual="/quickstart/howto/include/header.inc" -->
  3.  
  4. <h4>How Do I...Instantiate an Object?</h4>
  5.  
  6. <div class="indent" style="width:660">
  7. This sample instantiates a simple HelloWorld component with a single property and method...
  8. </div>
  9.  
  10. <h4>Example</h4>
  11.  
  12. <p>
  13. <div class="indent">
  14. <a target="_new" href="/quickstart/howto/samples/helloobj/helloobj.aspx">
  15. <img style="border-color:black" border=1 src="/quickstart/images/genicon.gif"><br>
  16. </a>
  17. <div class="caption">HelloObj.aspx</div><br>
  18. [<a target="_new" href="/quickstart/howto/samples/helloobj/helloobj.aspx">View Sample</a>] | 
  19. [<a target="_new" href="/quickstart/util/srcview.aspx?path=/quickstart/howto/samples/helloobj/helloobj.src">View Source</a>]<p>
  20. </div>
  21.  
  22. <h4>Source Code</h4>
  23.  
  24. <div class="code">
  25. <xmp>
  26. HelloObj obj = new HelloObj();
  27. obj.Name = "NGWS";
  28. obj.SayHello();
  29. </xmp>
  30. </div>
  31.  
  32. <!-- #include virtual="/quickstart/howto/include/footer.inc" -->
  33.