var jid = new Jid("[email protected]/resource"); jid.User = "newuser"; jid.Server = "newserver.com"; jid.Resource = "newresource";
var jid = Jid.Parse("[email protected]/resource");This code creates a new Jid instance by parsing the JID string "[email protected]/resource". Jid belongs to the agsXMPP library, which is a popular C# implementation of the XMPP/Jabber protocol.