无法将 Prism ConfirmationRequest 翻译成 VB.NET

Unable to translate Prism ConfirmationRequest to VB.NET

我将 Prism 与 VB.NET 一起使用,尽管所有 Prism 5 文档都是用 C# 编写的。我已经翻译了我需要的大部分代码,但现在我无法翻译确认请求代码。这是出现在 Prism 文档中的 C# 代码:

private void RaiseConfirmation()
{
    this.ConfirmationRequest.Raise(
        new Confirmation { Content = "Confirmation Message", Title = "Confirmation" },
        c => { InteractionResultMessage = c.Confirmed ? "The user accepted." : "The user cancelled."; });
}

谁能帮我翻译成VB.NET,好吗?

谢谢

这是我的尝试,完全未经测试,可能有一些错别字:

Private Sub RaiseConfirmation()
    Me.ConfirmationRequest.Raise(
        New Confirmation() With {
            .Content = "Confirmation Message", .Title = "Confirmation"
        },
        Sub(c)
            InteractionResultMessage =
                If(c.Confirmed, "The user accepted.", "The user cancelled.")
        End Sub
    )
End Sub