Archive for the ‘MCTS .NET 2.0’ category

What is the XmlWriter class?

November 2nd, 2009

The XmlWriter class is an abstract class of the System.Xml namespace. It is used to create streams and write data to XML documents. It performs tasks such as writing various documents into one output stream, encoding binary data, and managing, flushing, and closing output stream.

Like this article? Share it with others
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.
  • Share/Bookmark

How to create a custom culture?

October 25th, 2009

Take the following steps to create a custom culture as follows:

  1. Create the objects of CultureInfo, RegionInfo, and CultureAndRegionInfoBuilder classes as follows:

    Dim INculture As New CultureInfo(”en-IN”)
    Dim INregion As New RegionInfo(”en-IN”)
    Dim Demo As New CultureAndRegionInfoBuilder(”x-en-IN-sample”, _CultureAndRegionModifiers.None)

Like this article? Share it with others
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.
  • Share/Bookmark

How to write text to a newly created data file?

October 25th, 2009

The steps to write text to a newly created data file are as follows:

  1. Implement the System.IO namespace using the following code.

    using System.IO;

  2. Create a FileStream class object and initialize it with a file name.

    FileStream fs = new FileStream(”TestFile.data”, FileMode.Create);
    or
    FileStream fs;
    fs = new FileStream(”TestFile.data”, FileMode.Create);

Like this article? Share it with others
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.
  • Share/Bookmark

Tip on dissecting a Web reference.

October 11th, 2009

Open the Web references node in the Solution Explorer, and click Show All Files, a tree of items appear under the node.

Like this article? Share it with others
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.
  • Share/Bookmark

How to read text from a newly created data file?

October 10th, 2009

The steps to read text from a newly created data file are as follows:

  1. Implement the System.IO namespace using the following code.

    using System.IO;

  2. Create a FileStream class object and initialize it with a file name.

    FileStream fs = new FileStream(”TestFile.data”, FileMode.Open, FileAccess.Read);
    or
    FileStream fs;
    fs = new FileStream(”TestFile.data”, FileMode.Open, FileAcces.Read);
Like this article? Share it with others
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.
  • Share/Bookmark

How to retrieve information about the paused services?

October 10th, 2009

Take the following steps to retrieve information about paused services:

  1. Create a ManagementObjectSearcher class object as follows:

    ManagementObjectSearcher searcher = new ManagementObjectSearcher(”Select * from Win32_Service Where Started =FALSE”);

  2. Create a ManagementObjectCollection class object as follows:

    ManagementObjectCollection collect = searcher.Get();

Like this article? Share it with others
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.
  • Share/Bookmark

How to use GzipStream class to compress a file?

October 10th, 2009

The steps to use GzipStream class to compress a file are as follows:

  1. Import the following namespaces.

    Imports System.IO
    Imports System.IO.Compression
  2. Provide a file name that is to be compressed as follows:

    Dim filename As String= New String(@”C:Myapp empTestFile.txt”)

Like this article? Share it with others
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.
  • Share/Bookmark

How to set Option Explicit / Option Strict / Option Compare in the IDE?

October 10th, 2009

Take the following steps to set Option Strict / Option Explicit / Option Compare in the Integrated Development Environment (IDE) :

  1. Click on Tools menu > Options.

  2. Open the Projects and Solutions node.

  3. Select VB Defaults and modify the Option Explicit / Option Strict / Option Compare settings.

Like this article? Share it with others
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.
  • Share/Bookmark

How to set the Lib Path in the Visual Studio Integrated Development Environment?

October 10th, 2009

Take the following steps to set the Lib Path in the Visual Studio Integrated Development Environment:

  1. Select a project in the Solution Explorer. Right click on the Project menu and click Properties.

  2. Click the References tab.

  3. Click the Reference Paths… button.

Like this article? Share it with others
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.
  • Share/Bookmark

What is Boxing?

October 9th, 2009

Boxing is an implicit conversion of a value type to a reference type.

Like this article? Share it with others
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.
  • Share/Bookmark
uCertify.com | Our Company | Articles | Contact Us | News and Press Release | uCertify India | Entries (RSS)
MCSE: MCSA, MCTS, MCITP    JAVA Certification: SCJP, SCWCD    Cisco Certification: CCNA, CCENT    A+, Network+, Security+ Project+
Oracle Certification: OCP 11g, OCP 10g, OCA 11g, OCA 10g    CIW foundation    EC-212-32,    CISSP    Photoshop ACE CS4    Adobe Flash ACE, PMP, CAPM
© 2008 uCertify.com. All rights reserved. All trademarks are the property of their respective owners.