LogProvider.SetExpression Method (String, String)
Assigns the specified expression to the property. Specify null to remove an existing expression from the property.
Assembly: Microsoft.SqlServer.ManagedDTS (in Microsoft.SqlServer.ManagedDTS.dll)
The name of the property to which to assign the expression.
The propertyName will be ConfigString, Description, or Name. For the log provider, those are currently the only three properties that can use an expression.
The following example sets the Description property of the log provider to be the text, "This is the log for…" with the current month and day appended to the end of the string.
Current description: Writes log entries for events to a CSV file
Validation passed: Success
The expression for Description is "This is the log for January 06"
The description is now: This is the log for January 06