Properties in Visual Studio .NET

Generate QR in Visual Studio .NET Properties
Properties
Generating QR Code In Visual Studio .NET
Using Barcode creator for .NET framework Control to generate, create QR-Code image in VS .NET applications.
SubFolders
Read QR Code 2d Barcode In Visual Studio .NET
Using Barcode decoder for .NET framework Control to read, scan read, scan image in .NET framework applications.
Exists
Barcode Generation In Visual Studio .NET
Using Barcode encoder for .NET Control to generate, create bar code image in .NET applications.
Delete() Recycle()
Bar Code Decoder In Visual Studio .NET
Using Barcode recognizer for .NET framework Control to read, scan read, scan image in VS .NET applications.
Audit*
QR Code Creation In C#
Using Barcode encoder for VS .NET Control to generate, create Quick Response Code image in .NET applications.
Working with Lists
Make QR In .NET Framework
Using Barcode creator for ASP.NET Control to generate, create QR Code image in ASP.NET applications.
TABLE 3-10: Commonly Used Properties and Methods of the SPFolder (Continued)
Painting QR Code ISO/IEC18004 In Visual Basic .NET
Using Barcode drawer for .NET Control to generate, create QR Code 2d barcode image in .NET framework applications.
Property or Method CopyTo(string)
Code 128 Code Set C Maker In .NET Framework
Using Barcode drawer for .NET Control to generate, create Code-128 image in .NET framework applications.
Description Copies the folder and its contents to the URL specified by the string parameter Returns the server-relative URL for the folder Returns the SPFolder object representing the parent folder of this folder Moves the folder and its contents to the URL specified by the string parameter Returns an SPWeb object representing the parent site for the folder Returns the GUID that uniquely identifies the parent list for the folder Returns the count of children of this folder including subfolders
Barcode Creation In Visual Studio .NET
Using Barcode creator for VS .NET Control to generate, create barcode image in Visual Studio .NET applications.
ServerRelativeUrl ParentFolder
Making UPC Code In .NET Framework
Using Barcode generation for Visual Studio .NET Control to generate, create UPCA image in .NET framework applications.
MoveTo(string)
Barcode Creator In .NET Framework
Using Barcode generation for Visual Studio .NET Control to generate, create bar code image in .NET framework applications.
ParentWeb
ISSN - 13 Generation In .NET
Using Barcode generation for .NET framework Control to generate, create International Standard Serial Number image in .NET applications.
ParentListID
Code 128 Code Set B Printer In VB.NET
Using Barcode creator for Visual Studio .NET Control to generate, create Code128 image in VS .NET applications.
ItemCount
Printing Code 128 Code Set A In Visual C#.NET
Using Barcode drawer for .NET framework Control to generate, create Code 128 Code Set A image in VS .NET applications.
* Not available in sandboxed solutions
Encode EAN13 In .NET Framework
Using Barcode generator for ASP.NET Control to generate, create GS1 - 13 image in ASP.NET applications.
Listing 3-29 shows an ItemDeleting event receiver for the Announcements list that prevents the deletion of an item if it is a folder To make this sample work, you may need to go to the list settings for the Announcement list, click on the Advanced Settings link, and set the Make New Folder command available setting to Yes Once you have created a folder in the list, try to delete it The code in Listing 3-29 will detect that the deleting item is a folder (since propertiesListItemFolder returns a non-null result) It then displays the URL, number of files in the folder, and number of subfolders in the folder Finally, it uses propertiesErrorMessage to set the error displayed to the output and sets propertiesCancel = true to prevent the deletion of the folder The output for Listing 3-29 is shown in Listing 3-30
Bar Code Generation In VS .NET
Using Barcode generator for ASP.NET Control to generate, create barcode image in ASP.NET applications.
3: Introduction to the SharePoint Object Model
Code128 Creator In Java
Using Barcode printer for Java Control to generate, create Code 128A image in Java applications.
Listing 3-29: Using SPFolder in the ItemDeleting event receiver handler in a sandboxed solution
Scan Bar Code In .NET
Using Barcode recognizer for .NET Control to read, scan read, scan image in Visual Studio .NET applications.
     
UCC-128 Generation In .NET Framework
Using Barcode printer for ASP.NET Control to generate, create EAN / UCC - 14 image in ASP.NET applications.
     
GTIN - 128 Creator In Java
Using Barcode creator for Java Control to generate, create UCC - 12 image in Java applications.
 
Listing 3-30: Output of Listing 3-29
   
SPFile The SPFile object represents a file in SharePoint for example, web part pages, or a file in a document library or folder Table 3-11 shows some of the most commonly used properties and methods of SPFile To get an SPFile object, you typically start with an SPListItem object and use the File property that will return an SPFile object if the list item is a file, otherwise it returns null
Working with Lists
TABLE 3-11: Commonly Used Properties and Methods of SPFile
Property or Method Web
Description Returns the SPWeb object representing the site where the file is found Returns the name of the file including the file extension Returns the site-relative URL of the file Returns a Hashtable object with metadata associated with the file in key value pairs Method that saves the changes made to the file after using the SPFile object s methods and properties Returns an SPFileVersionCollections object that contains SPFileVersion objects representing prior versions of the file Returns the size of the file in bytes Returns the SPListItem object associated with the file Method that can be used to convert the file from one format to another Returns a member of the SPFileLevelEnumeration to indicate whether the file is published, is a draft, or is checked out Returns the display name for the file Returns a bool value that indicates whether the file exists Method that deletes the file Returns an SPUser object representing the user who created the file or uploaded it originally Method that publishes the file with the comment specified by the string parameter Overloaded method that returns a byte array for the file contents Continues
Name Url Properties
Update()
Versions
Length Item Convert()*
Level
Title Exists Delete() Author
Publish(string)
OpenBinary()
3: Introduction to the SharePoint Object Model
TABLE 3-11: Commonly Used Properties and Methods of SPFile (Continued)
Property or Method Recycle()
Description Method that puts the file in SharePoint s recycle bin and returns the GUID associated with the file If the file is a web part page, this method returns the SPLimitedWebPartManager object associated with the web part page Returns the server-relative URL for the file Overloaded method that checks out the file if it is in a document library Returns a member of the SPCheckOutType enumeration that indicates whether the file is checked out for editing on the server (Online), checked out for editing on the client (Offline) or not checked out (None) Method that approves the file for content approval with the comment specified by the string parameter Overloaded method that moves the file to a destination URL specified by input parameters to the method Returns True if the file is in a document library Overloaded method that checks a file into a document library with a comment specified by a string input parameter Returns an SPEventReceiverDefinitionCollection object that is a collection of SPEventReceiverDefinition objects representing each registered event receiver registered for the file
GetLimitedWebPartManager( )*
ServerRelativeUrl CheckOut( )