You were close. Change this:
var excludedActivityTypes = new NSString[] { new NSString("UIActivityTypePostToWeibo"), new NSString("UIActivityTypeMessage") };
in
var excludedActivityTypes = new NSString[] { UIActivityType.PostToWeibo, UIActivityType.Message };
Note. The name of a constant does not always match its value. In addition, it is common (even bad practice) for ObjC to compare NSString pointers (and not their values) to find constant equality - creating your own NSString instance will not work in such cases (in any case, exposed const look much better and work better with code completion from the IDE).
source share