ActivityTemplateVariable.DateOnlyToString(String, ActivityTemplateVariable, ContentType, CultureInfo) ActivityTemplateVariable.DateOnlyToString(String, ActivityTemplateVariable, ContentType, CultureInfo) ActivityTemplateVariable.DateOnlyToString(String, ActivityTemplateVariable, ContentType, CultureInfo) Method

Definition

Static method that converts the DateOnly property of the specified ActivityTemplateVariable into a string.

public:
 static System::String ^ DateOnlyToString(System::String ^ tag, Microsoft::Office::Server::ActivityFeed::ActivityTemplateVariable ^ atv, Microsoft::Office::Server::ActivityFeed::ContentType ct, System::Globalization::CultureInfo ^ ci);
public static string DateOnlyToString (string tag, Microsoft.Office.Server.ActivityFeed.ActivityTemplateVariable atv, Microsoft.Office.Server.ActivityFeed.ContentType ct, System.Globalization.CultureInfo ci);
Public Shared Function DateOnlyToString (tag As String, atv As ActivityTemplateVariable, ct As ContentType, ci As CultureInfo) As String
Parameters
atv
ActivityTemplateVariable ActivityTemplateVariable ActivityTemplateVariable

The ActivityTemplateVariable whose DateOnly property is to be converted into a string.

ct
ContentType ContentType ContentType

The ContentType that is to be returned. If the ContentType is Html, then the string will be HTML-encoded.

ci
CultureInfo CultureInfo CultureInfo

The CultureInfo for this date string. This will determine the format of the date.

Returns

Remarks

Returns a null reference (Nothing in Visual Basic) if the DateOnlySpecified value of the specified ActivityTemplateVariable is not set to true.

Applies to