PstItemMakeStringSafeForFileName Method
Replaces all those characters in the supplied string which cannot be used in filenames, with "_" symbols.

Namespace: MailBee.Outlook
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax
public static string MakeStringSafeForFileName(
	string str
)

Parameters

str
Type: SystemString
A string which may contain symbols not allowed in filenames.

Return Value

Type: String
A string safe to use as a filename, or an empty string if str is empty.
Exceptions
ExceptionCondition
MailBeeInvalidArgumentExceptionstr is a null reference (Nothing in Visual Basic).
See Also