Browsed by
Tag: C#

How to make your content accessible

How to make your content accessible

I have long been concerned about following web standards (and any others that apply to me) to ensure maximum accessibility for readers of my website (and others I maintain). I recently attended a brief training that covered the definition of accessibility. It’s wider than I realized. Accessibility can be defined in terms of people’s disabilities – something like “the product or service can be used regardless of a user’s disabilities” – but it’s better to define it more broadly as…

Read More Read More

PowerShell and Exchange with C#

PowerShell and Exchange with C#

When writing a program that needs to interact with Exchange (whether on-premises or off-premises/online), the easiest way is to use PowerShell commands. This is done by adding the following above your namespace declaration: using System.Management.Automation; The key thing that I have found to be a problem for C# programs using PowerShell is that occasionally you will receive an error message that says “A connection to the directory on which to process the request was unavailable. This is likely a transient…

Read More Read More

Objects in code

Objects in code

Everything I read about object oriented code gives an example, like an animal, that has features such as a number of legs, and a breed, and any number of other, entirely-irrelevant-to-real-life-examples. These examples are good at describing the very, very high-level concept, but they fail to provide the concrete examples that a user might genuinely need in their coding life. A module I have written pulls data from Active Directory, and has functions that can change that data. I believe…

Read More Read More