TryGetPropertyDateTime

MapiPropertyContainer.TryGetPropertyDateTime method

获取指定属性的值作为 DateTime 类型。 返回值表示操作是否成功。

public bool TryGetPropertyDateTime(long tag, ref DateTime value)
范围类型描述
tagInt64MAPI 属性标记。
valueDateTime&当此方法返回时,包含指定属性的 值(如果该属性存在)。 此参数未初始化传递。

返回值

如果 s 转换成功,则为 true;否则为假。

也可以看看