In VS 15.7 the example code will lead to an invalid value warning/error for Enum constraint failure
for the deliveryMethod
attribute, which has network
as its value in the example, but should be Network
.
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
Thanks for bringing this to our attention, @ite-klass. @davidsh, can you confirm that the value of the deliveryMethod
attribute should be Network
rather than network
?
The public enum type SmtpDeliveryMethod has these values:
c#
public enum SmtpDeliveryMethod
{
Network,
SpecifiedPickupDirectory,
PickupDirectoryFromIis
}
So, the casing should match the public enum value "Network". The code example on the documentation page should be fixed.
Thanks, @davidsh. I assume that the casing applies as well to SpecifiedPickupDirectory and PickupDirectoryFromIis, both of which are therefore also incorrect. I'll submit a PR to correct these shortly.
Most helpful comment
Thanks, @davidsh. I assume that the casing applies as well to SpecifiedPickupDirectory and PickupDirectoryFromIis, both of which are therefore also incorrect. I'll submit a PR to correct these shortly.