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  |  

$4.95 Windows Hosting at Webhost4life.com
  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
The best choice for your web site host, email hosting, and domain registration.
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
825 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.

 


Subzero Solutions
Dutch / English DotNetNuke consultancy services. Custom module development in any version. Complete application integration. Small business portal hosting. Your ideas our innovation - Your success our motivation. K.v.k Amsterdam: 34236342
www.subzero-solutions.net
Hosting for DotNetNuke
SiteGround.com is the best place to host your DotNetNuke website! Expert DotNetNuke support, reliable servers, low price!
www.SiteGround.com
Code Endeavors, LLC
Do you Endeavor to Enhance your DotNetNuke designs by utilizing AJAX technologies to more efficient interactive web experiences
www.codeendeavors.com

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