Hi!
I try to get the subnet location info using the code below found at
http://msdn2.microsoft.com/en-us/lib....location.aspx.
But it only tells me that "instance" is used before it has been assigned a
value. Can anyone tell me what to do to get my subnet location info?
Public Property SubnetLocation( ) As String
Get
Dim instance As ActiveDirectory Subnet
SubnetLocation = instance.Locati on
Console.WriteLi ne("SubnetLocat ion: " & SubnetLocation)
End Get
Set(ByVal value As String)
Dim instance As ActiveDirectory Subnet
instance.Locati on = SubnetLocation
End Set
End Property
Regards
Morten Fagermoen
I try to get the subnet location info using the code below found at
http://msdn2.microsoft.com/en-us/lib....location.aspx.
But it only tells me that "instance" is used before it has been assigned a
value. Can anyone tell me what to do to get my subnet location info?
Public Property SubnetLocation( ) As String
Get
Dim instance As ActiveDirectory Subnet
SubnetLocation = instance.Locati on
Console.WriteLi ne("SubnetLocat ion: " & SubnetLocation)
End Get
Set(ByVal value As String)
Dim instance As ActiveDirectory Subnet
instance.Locati on = SubnetLocation
End Set
End Property
Regards
Morten Fagermoen
Comment