Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Csharp   (RSS)

Comparing strings - a few samples

I thought I would share some simple sample code which is useful for finding problems in string content. Here are three methods I wrote which are useful to see whats in a string and differences between strings. I use these with a simple program which uses

System.Net.Mail with SSL to authenticate against port 465

Sending mail using System.Net.Mail with SSL will fail: System.Net. NetworkCredential aCred = new System.Net. NetworkCredential ( "myacct" , "mypassword" ); SmtpClient smtp = new SmtpClient ( "smtp.mail.myserver.com" , 465); smtp.EnableSsl = true ; smtp.UseDefaultCredentials

Howto: WebDAV SEARCH using C#

' This example shows how to do a SEARCH using C# // C# Example to SEARCH a mailbox. // TODO: // Add a button and double click on it // Add a multi-line text box and make it big. // Add a project reference to System.Xml, an System.Net // Paste-in the code

HOWTO CDOEX C#: How to extract VCalendar stream from an appointment.

' TODO: ' Create a C# Winform app ' Reference to Microsoft CDO for Exchange 2000 Server Library (COM) - this ' will add a reference to ADO automaticlly. ' NOTE: Do not add a reference to ADO or ADO.NET - this will cause interferance ' with CDOEX/CDOSYS

EWS - Csharp - List unread inbox messages using a restriction

// C# sample using Exchange Web Service Proxy classes to list unread messages in an inbox using a restriction. private void FindInFolder() { // TODO: Put this code into a winform and call from a button: // TODO: create 3 text boxes called txtRequest,

HOWTO: csharp - powershell - call get-clusteredmailboxserverstatus with managed code.

// HOWTO: csharp - powershell - call get-clusteredmailboxserverstatus with managed code. // Sample which calls get-clusteredmailboxserverstatus and returns a list of nodes. //TODO: //#1 - Create a C# winform application and add a button. //#2 - Add namespace

HOWTO: csharp - Exchange powershell - call get-StorageGroupCopyStatus with managed code.

This sample is good for both calling and for using with calling other commandlets and seeing what is returend - ie it breaks-down the return results in general. See, most examples I've found so far show only how to get exact properties and not just dump
 
Page view tracker