internal static object SendWatsonReportGetter(IPropertyBag propertyBag) { object obj = propertyBag[ADMobileVirtualDirectorySchema.MobileClientFlags]; if (obj == null) { return((ADMobileVirtualDirectorySchema.DefaultMobileClientFlags & MobileClientFlagsType.SendWatsonReport) == MobileClientFlagsType.SendWatsonReport); } MobileClientFlagsType mobileClientFlagsType = (MobileClientFlagsType)obj; return((mobileClientFlagsType & MobileClientFlagsType.SendWatsonReport) == MobileClientFlagsType.SendWatsonReport); }
internal static object MobileClientCertProvisioningEnabledGetter(IPropertyBag propertyBag) { object obj = propertyBag[ADMobileVirtualDirectorySchema.MobileClientFlags]; if (obj == null) { return(false); } MobileClientFlagsType mobileClientFlagsType = (MobileClientFlagsType)obj; return((mobileClientFlagsType & MobileClientFlagsType.ClientCertProvisionEnabled) == MobileClientFlagsType.ClientCertProvisionEnabled); }
internal static object BadItemReportingEnabledGetter(IPropertyBag propertyBag) { object obj = propertyBag[ADMobileVirtualDirectorySchema.MobileClientFlags]; if (obj == null) { return(true); } MobileClientFlagsType mobileClientFlagsType = (MobileClientFlagsType)obj; return((mobileClientFlagsType & MobileClientFlagsType.BadItemReportingEnabled) == MobileClientFlagsType.BadItemReportingEnabled); }
internal static object RemoteDocumentsActionForUnknownServersGetter(IPropertyBag propertyBag) { object obj = propertyBag[ADMobileVirtualDirectorySchema.MobileClientFlags]; if (obj == null) { return(RemoteDocumentsActions.Allow); } MobileClientFlagsType mobileClientFlagsType = (MobileClientFlagsType)obj; return(((mobileClientFlagsType & MobileClientFlagsType.RemoteDocumentsActionForUnknownServers) == MobileClientFlagsType.RemoteDocumentsActionForUnknownServers) ? RemoteDocumentsActions.Block : RemoteDocumentsActions.Allow); }