Quantcast
Channel: SharePoint 2013 - General Discussions and Questions forum
Viewing all articles
Browse latest Browse all 26374

[C#] Setting Non-String Profile Properties to empty

$
0
0

Hi,

In C#, for User Profile Properties of type Person, Email and integer, how do we clear values for this?

For example:

case "Email":
         userProp.Value = value;

When value is string.Empty, an exception is thrown:

                Invalid String Value: Input must match string data type

What value do I need to use so that I can clear the value in property of type "Email"?

Thanks!


Viewing all articles
Browse latest Browse all 26374

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>