Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

Maximum ASP
  Ads  
OnyakTech
 


  Sponsors  

Meet Our Sponsors

Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
CrystalTech Web Hosting™
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Why is this a private declaration?
Previous Previous
 
Next Next
New Post 4/7/2006 1:32 PM
User is offline Stephen Waller
1 posts
10th Ranked


Why is this a private declaration? 

Why is Microsoft.ApplicationBlocks.Data.SQLHelper.new() privately declared where I cannot create a new instance of this most helpful dll?  When I look at it in the Object Browser it says public sub new, but when I go to declare a new instance of it, I get the error:

 Error 1 'Microsoft.ApplicationBlocks.Data.SqlHelper.Private Sub New()' is not accessible in this context because it is 'Private'.

Code:

dim sHelper as new Microsoft.ApplicationBlocks.Data.SqlHelper

Any help would be greatly appreciated.  Thanks in advance.

 
New Post 4/8/2006 5:55 PM
User is offline William Severance
847 posts
www.wesnetdesigns.com
7th Ranked






Re: Why is this a private declaration? 

All of the methods of SQLHelper are declared as static/shared so you don't need to first instantiate a new object - just reference the class name:

SQlHelper.ExecuteReader ( . . . .)

etc.


Bill, WESNet Designs
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Why is this a private declaration?
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Personify Design, Inc.
Seattle-based Personify Design has developed customized DotNetNuke websites for a wide range of customers to meet many different types of needs, including distributed authorship across thousands of pages to integrated Verisign e-commerce capabilities.
www.personifydesign.com
DNN Outsourcing
50% more affordable services comparing to Western Europe and US: Custom DotNetNuke module development, skins, consulting, maintainence... Over 15.000 working hours of experience in custom DotNetNuke Solutions development, 8 years experience in outsourcing, excellent references!
www.dnnoutsourcing.com
Expressnet - DotNetNuke Hosting
Expressnet provide premium quality ASP.NET Web Hosting. We specialise in Windows based products including ASP.NET and Microsoft SQL Server. We offer fantastic value packages for DotNetNuke hosting. We also offer free asp.net web hosting
www.expressnet.com.au

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP