<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Quinterox &#187; set</title>
	<atom:link href="http://www.quinterox.com/content/tag/set/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.quinterox.com/content</link>
	<description>Cesar Quinteros</description>
	<lastBuildDate>Sun, 20 Jun 2010 04:51:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Setting And Getting Public Properties</title>
		<link>http://www.quinterox.com/content/code/setting-and-getting-public-properties/</link>
		<comments>http://www.quinterox.com/content/code/setting-and-getting-public-properties/#comments</comments>
		<pubDate>Tue, 12 Aug 2008 04:31:53 +0000</pubDate>
		<dc:creator>Cesar Quinteros</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[asp]]></category>
		<category><![CDATA[get]]></category>
		<category><![CDATA[set]]></category>

		<guid isPermaLink="false">http://quinterox.com/code/?p=21</guid>
		<description><![CDATA[A simple example of setting and getting public properties.]]></description>
			<content:encoded><![CDATA[<p>I am not 100% sure how public properties are supposed to be used but I intend to use it to store the current user&#8217;s name and email. It could also be used to store blog information momentarily.</p>
<pre>
Private mstrName As String
Public Property Name() As String
        Get
            Name = mstrName
           ' Returns default value if nothing has changed it
        End Get
        Set(ByVal pstrName As String)
            mstrName  = pstrName
           'Sets the name to be the newly entered value
        End Set
 End Property
</pre>
<p>The information can then be retrieved or set as follows:</p>
<pre>
Dim settingsClass As New 'yourClassName'

Response.Write(settingsClass.Name)
'Returns Cesar
settingsClass.Name = "John"
'Assigns 'John' to the name property
Response.Write(settingsClass.Name)
'Returns John
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.quinterox.com/content/code/setting-and-getting-public-properties/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
