INFO: Set a Property on a .NET Framework Object with Get and Set Functions in Visual J# .NET (316670)



The information in this article applies to:

  • Microsoft Visual J# .NET (2002)
  • Microsoft Visual J# .NET (2003)
  • Microsoft .NET Framework 1.0
  • Microsoft .NET Framework 1.1

This article was previously published under Q316670

SUMMARY

In Visual J# .NET, the accessor functions set_ and get_ are used to set and retrieve the value of a property that is defined in a .NET Framework class.

MORE INFORMATION

By design, each .NET Framework object has a set_ and get_ method that permits you to work with the properties of the object. The following Visual J# .NET code is an example.
boolean binary = false;
	
DataSet ds = new DataSet ("Some Table");
	
ds.set_CaseSensitive (true);
binary = ds.get_CaseSensitive ();
				
Visual J# .NET code is not like other .NET languages, such as Microsoft Visual C# .NET. The following is a Visual C# .NET code sample:
bool binary = false;

DataSet ds = new DataSet ("Some Table");

ds.CaseSensitive = true;
binary = ds.CaseSensitive;
				

Modification Type:MajorLast Reviewed:8/7/2003
Keywords:kbinfo KB316670