Sky Software Homepage LogicNP Software Knowledge Base And FAQ

 
Contact Product Support    SearchSearch      Subscribe to the RSS feed for this forum

HOWTO: Create a namespace extension rooted at a file system folder.

 
Subscribe to the RSS feed for this forum  Forum Index -> EZNamespaceExtensions.Net
View previous topic :: View next topic  
Author Message
Support



Joined: 18 Jul 2005
Posts: 731

Posted: Wed Jan 23, 2008 6:18 am    Post subject: HOWTO: Create a namespace extension rooted at a file system folder.

To create a namespace extension rooted at a file system folder, in the overridden GetNSETargetInfo method, set the FileSystemFolder property of NSETargetInfo to the desired folder path as follows :

[C#]

public override NSETargetInfo GetNSETargetInfo()
{
NSETargetInfo nti = new NSETargetInfo("MyNamespaceExtension", NSETarget.FileSystemFolder,
NSEItemAttributes.Folder
| NSEItemAttributes.HasSubFolder
| NSEItemAttributes.Browsable
| NSEItemAttributes.FileSysAncestor
| NSEItemAttributes.FileSystem
);
nti.FileSystemFolder = <<"Folder path here">>;
...
...
...
return nti;
}


[VB.Net]

Public Overrides Function GetNSETargetInfo() As NSETargetInfo
Dim tempAttrib As NSEItemAttributes
tempAttrib = NSEItemAttributes.Folder _
Or NSEItemAttributes.HasSubFolder _
Or NSEItemAttributes.FileSysAncestor _
Or NSEItemAttributes.FileSystem _
Or NSEItemAttributes.Browsable
Dim nti As NSETargetInfo = New NSETargetInfo("MyNamespaceExtension", _
NSETarget.FileSystemFolder, tempAttrib)
nti.FileSystemFolder = <<"Folder path here">>
...
...
...
Return nti
End Function
Back to top
Display posts from previous:   
Forum Index -> EZNamespaceExtensions.Net All times are GMT
Page 1 of 1

 
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group