Click here to Skip to main content
15,925,371 members
Home / Discussions / C#
   

C#

 
GeneralRe: Simple NumericUpDown Question Pin
Judah Gabriel Himango17-Oct-06 9:57
sponsorJudah Gabriel Himango17-Oct-06 9:57 
QuestionHow to set Size of My Icon in button.Image ? Pin
hdv21216-Oct-06 7:30
hdv21216-Oct-06 7:30 
AnswerRe: How to set Size of My Icon in button.Image ? Pin
Christian Graus16-Oct-06 7:42
protectorChristian Graus16-Oct-06 7:42 
QuestionCustom controls in a listbox? Pin
Michael Hendrickx16-Oct-06 7:29
Michael Hendrickx16-Oct-06 7:29 
AnswerRe: Custom controls in a listbox? Pin
Judah Gabriel Himango16-Oct-06 11:11
sponsorJudah Gabriel Himango16-Oct-06 11:11 
QuestionInteropServices Pin
Andy H16-Oct-06 6:10
Andy H16-Oct-06 6:10 
AnswerRe: InteropServices Pin
Andy H16-Oct-06 6:42
Andy H16-Oct-06 6:42 
QuestionWMI Interface to Microsoft DNS in C#.NET Pin
gmorse2@cox.net16-Oct-06 4:39
gmorse2@cox.net16-Oct-06 4:39 
Greetings!

I have been using the System.Management object in a Visual Studio 2003 C# application to access Microsoft DNSS entries. The problem I have encountered is with TXT records which have multiple string entries ("A DNS TXT record can be up to 65535 (0xFFFF) bytes long"). Microsoft supports this just fine, for example, I have a TXT record with the following string values:

KeyA=ValueA
KeyB=ValueB
KeyC=ValueC
KeyD=ValueD
KeyE=ValueE
KeyF=ValueF
KeyG=ValueG
KeyH=ValueH

Microsoft DDNS has no problem with this. But when I retrieve the TXT record with:

(ObjectQuery oQ = new ObjectQuery("select * from MicrosoftDNS_TXTType where OwnerName=...");

the WMI query returns in the following:

OwnerName: aaatesttxtrec.domain.com
RecordData: "KeyA=ValueA" "KeyB=ValueB"
DescriptiveText: KeyA=ValueA
TextRepresentation: aaatesttxtrec.domain.com IN TXT "KeyA=ValueA" "KeyB=ValueB"

(changing the domain name to protect the guilty)

Now, I would be a whole lot less confused if the WMI query had only returned the first value string (or, if the total length of the returned values was less than 64, the maximum length for a single TXT value string).

So why am I only getting the first two (of eight) data strings from the TXT record? Is this a bug in the .NET WMI interface, or am I doing something horribly wrong?

Thank you'all for any help you may be able to offer!



Grant V. Morse
QuestionLines disappear Pin
ssoffline16-Oct-06 3:56
ssoffline16-Oct-06 3:56 
AnswerRe: Lines disappear Pin
Guffa16-Oct-06 4:23
Guffa16-Oct-06 4:23 
GeneralRe: Lines disappear Pin
ssoffline16-Oct-06 5:01
ssoffline16-Oct-06 5:01 
AnswerRe: Lines disappear Pin
Guffa16-Oct-06 5:27
Guffa16-Oct-06 5:27 
GeneralRe: Lines disappear Pin
ssoffline16-Oct-06 5:35
ssoffline16-Oct-06 5:35 
AnswerRe: Lines disappear Pin
Guffa16-Oct-06 6:51
Guffa16-Oct-06 6:51 
GeneralRe: Lines disappear Pin
ssoffline16-Oct-06 16:32
ssoffline16-Oct-06 16:32 
AnswerRe: Lines disappear Pin
Guffa16-Oct-06 21:08
Guffa16-Oct-06 21:08 
AnswerRe: Lines disappear Pin
Christian Graus16-Oct-06 5:38
protectorChristian Graus16-Oct-06 5:38 
GeneralRe: Lines disappear Pin
ssoffline16-Oct-06 5:44
ssoffline16-Oct-06 5:44 
GeneralRe: Lines disappear Pin
Christian Graus16-Oct-06 5:50
protectorChristian Graus16-Oct-06 5:50 
GeneralRe: Lines disappear Pin
ssoffline16-Oct-06 6:07
ssoffline16-Oct-06 6:07 
GeneralRe: Lines disappear Pin
Christian Graus16-Oct-06 6:13
protectorChristian Graus16-Oct-06 6:13 
GeneralRe: Lines disappear Pin
ssoffline16-Oct-06 6:26
ssoffline16-Oct-06 6:26 
GeneralRe: Lines disappear Pin
Christian Graus16-Oct-06 7:42
protectorChristian Graus16-Oct-06 7:42 
GeneralRe: Lines disappear Pin
ssoffline16-Oct-06 17:54
ssoffline16-Oct-06 17:54 
AnswerRe: Lines disappear Pin
sam#16-Oct-06 5:54
sam#16-Oct-06 5:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.