Showing posts with label Custom document id provider. Show all posts
Showing posts with label Custom document id provider. Show all posts

Monday, April 23, 2012

Implement your own custom provider to generate unique IDs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Office.DocumentManagement;
  
namespace CustomDocIDProvider
{
    class CustomDocIDProvider :
Microsoft.Office.DocumentManagement.DocumentIdProvider
    {
        public override bool DoCustomSearchBeforeDefaultSearch
        {
           //property used to trigger our custom search first.If false then we will use the SharePoint search when retreiving
            Document IDs
            get
            {
                return false;
            }
        }
  

Featured Posts

Kali Linux Remote Desktop: Access GNOME from Windows Using Native RDP

  Kali Linux + GNOME 50 + GNOME Remote Desktop + Windows Remote Desktop (MSTSC) Getting a full GNOME desktop remotely on Kali Linux can be ...