ActivityTemplateVariable.DateOnlyToString Method
Static method that converts the DateOnly property of the specified ActivityTemplateVariable into a string.
Namespace: Microsoft.Office.Server.ActivityFeed
Assembly: Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)
Syntax
'Declaration
Public Shared Function DateOnlyToString ( _
tag As String, _
atv As ActivityTemplateVariable, _
ct As ContentType, _
ci As CultureInfo _
) As String
'Usage
Dim tag As String
Dim atv As ActivityTemplateVariable
Dim ct As ContentType
Dim ci As CultureInfo
Dim returnValue As String
returnValue = ActivityTemplateVariable.DateOnlyToString(tag, _
atv, ct, ci)
public static string DateOnlyToString(
string tag,
ActivityTemplateVariable atv,
ContentType ct,
CultureInfo ci
)
Parameters
- tag
Type: System.String
atv
Type: Microsoft.Office.Server.ActivityFeed.ActivityTemplateVariableThe ActivityTemplateVariable whose DateOnly property is to be converted into a string.
ct
Type: Microsoft.Office.Server.ActivityFeed.ContentTypeThe ContentType that is to be returned. If the ContentType is Html, then the string will be HTML-encoded.
ci
Type: System.Globalization.CultureInfoThe CultureInfo for this date string. This will determine the format of the date.
Return Value
Type: System.String
Remarks
Returns a null reference (Nothing in Visual Basic) if the DateOnlySpecified value of the specified ActivityTemplateVariable is not set to true.
See Also
Reference
ActivityTemplateVariable Class