当前上下文中不存在上下文(Android 项目)

Context does not exist in current context (Android Project)

我对 Xamarin 还很陌生,正在尝试 Xamarin 开发人员网站上的不同教程。我正在测试 Android 的通知代码并收到 "Context does not exist in the current context" 错误。我将以下代码放在 MainActivity.cs 中。我该如何解决这个问题?

Notification.Builder builder = new Notification.Builder (this)
.SetContentTitle ("Sample Notification")
.SetContentText ("Hello World! This is my first notification!")
.SetSmallIcon (Resource.Drawable.ic_notification);

// Build the notification:
Notification notification = builder.Build();

// Get the notification manager:
NotificationManager notificationManager =
GetSystemService (Context.NotificationService) as NotificationManager;

// Publish the notification:
const int notificationId = 0;
notificationManager.Notify (notificationId, notification);

原来我不需要上下文来访问NotificationService。我认为这是因为我已经在上下文中了。